Fixed sensor.js

Fixed more broken stuff