Create sensor.c

The main file