Removed 2 unused methods form sensor.c and Added ResetSensor method to sensor.c