The water flow sensor activates the water heater when water starts flowing through the water heater. It turns off the unit when the water flow stops.