The water flow cycle is controlled by a microprocessor, which monitors the opening and closing of the solenoid valve, based on the information received from the sensors detecting human warmth.