updated sensor.py to reflect sensor_dict.py structure change