Fixed another minor bug

Sensor now works.