Added pump_sensor to pump handler and fixed timeIsSet so that it would
go back to false if sync is lost.