update sensor.php