Allow for sensor to be on or off using using State Pattern