updated sensors.py