Fixed sensor.py to properly parse new config files