Sensor input now working