Update sensor.c