Flow Monitoring: The YF-S401 flow sensor provides pulse signals corresponding to the water flow rate. The Arduino reads these pulses to calculate the flow rate and total volume passed.
Pump Control: A relay module connected to the Arduino controls the 12V diaphragm pump. The Arduino can activate or deactivate the pump based on the flow data or predefined conditions.
Solenoid Valve Operation: The 12V NC solenoid valve ensures that water flow is allowed only when energized. The Arduino can control this valve via another relay, opening it when water flow is desired and closing it otherwise.
Automated Irrigation System: Deliver precise amounts of water to plants based on soil moisture levels or scheduled timings
Smart Water Flow Control System - My Arduino Sketch.