Update sensor.js