update sensor.js