small change to sensor.py