create sensor.c

System Activation via external input.(magnetic field)