








Water Flow Sensor flow meter – YF-S201 1 to 30L/min Hall Effect Sensor
The YF-S201 Water Flow Sensor is a compact, high-precision Hall Effect-based sensor designed to measure the flow rate of water or other non-corrosive liquids. Compatible with Arduino, ESP32, and Raspberry Pi, it’s ideal for smart irrigation, water dispensers, and IoT-based fluid control. A water flow sensor is a specific type of flow sensor designed to measure the flow rate of water. It is used in various sectors such as plumbing, irrigation systems, water treatment plants, and industrial processes where water flow monitoring is essential.
₹ 219
₹399
399



Add FAQ
Detailed Description:
Precisely measure and monitor liquid flow in your projects with the Water Flow Sensor – YF-S201, a highly popular and reliable Hall Effect flow meter. This compact device is designed for a wide range of applications, from smart irrigation systems and automatic water dispensers to DIY coffee machines and industrial flow monitoring. The YF-S201 provides an easy and accurate way to quantify fluid movement within a 1 to 30 liters per minute flow range.
The sensor operates on the Hall Effect principle. When water flows through the device, it spins a small internal rotor equipped with a magnet. An integrated Hall sensor detects the magnetic field from this spinning rotor and outputs a series of clean, square-wave electrical pulses. The frequency of these pulses is directly proportional to the flow rate, making it simple to calculate. With a nominal calibration of Frequency (Hz) = 7.5 * Flow rate (L/min)
, you can easily convert the pulse frequency into a flow measurement.
Featuring a standard 1/2-inch nominal pipe connection, the YF-S201 is simple to install in most plumbing setups. It requires a DC voltage supply in the 5V to 18V range and provides a 5V TTL output, making it fully compatible with a wide array of microcontrollers. For the most accurate and efficient pulse counting, it is highly recommended to connect the yellow signal wire to a digital pin on an Arduino, ESP32, or Raspberry Pi that supports interrupts. This allows the microcontroller to count pulses without constant polling, freeing up processing power for other tasks. With its durable build, excellent sealing, and simple three-wire interface (Red for VCC, Black for GND, and Yellow for Signal), the YF-S201 Water Flow Sensor is an essential component for any fluid-based project in Pune, Maharashtra, India.
The YF-S201 is a liquid flow sensor that uses a Hall-effect sensing technique to measure the flow of water in the range of 1 to 30 liters per minute. Internally, it has a plastic rotor with a magnet that spins when water flows through it, generating digital pulses via the Hall sensor.
Each pulse corresponds to a fixed quantity of liquid passing through the sensor. These pulses can be read by microcontrollers like Arduino, STM32, ESP32, Raspberry Pi, etc., to determine real-time flow rate or total volume. The sensor housing is made from durable ABS plastic and includes standard ½” threaded fittings for easy integration with pipes.
Key Features:
-
Measures 1 to 30L/min liquid flow rate
-
Uses Hall-effect sensing for accurate pulse output
-
Outputs digital pulses (approx. 4.5–5V TTL level)
-
Compatible with Arduino, ESP32, Raspberry Pi, STM32
-
½" male threaded inlet/outlet for easy plumbing
-
Low startup flow threshold (~1L/min)
-
Durable ABS plastic body – corrosion-resistant
-
Great for DIY smart water meters, dispensers, and flow control
Technical Specifications:
Parameter | Specification |
---|---|
Model | YF-S201 |
Measurement Range | 1–30 Liters/Minute |
Working Voltage | 5V to 18V DC |
Output Signal | Pulse (Hall Effect) |
Output Type | Digital square wave |
Thread Size | ½” BSP (G1/2 inch) |
Accuracy | ±10% |
Operating Temperature | ≤ 80°C |
Pulse Frequency Formula | F = 7.5 × Q (Q = flow rate in L/min) |
Max Working Pressure | ≤ 1.75 MPa |
Materials | ABS plastic, magnet, stainless steel spring |
How to Use:
-
Connect the sensor's red (VCC), black (GND), and yellow (signal) wires to the microcontroller.
-
Measure the digital pulses on the signal pin to determine the flow rate.
-
Use the formula:
Flow rate (L/min) = Pulse Frequency / 7.5
-
Integrate in code to calculate instantaneous flow rate or accumulated volume.
void setup() {
pinMode(2, INPUT_PULLUP);
attachInterrupt(digitalPinToInterrupt(2), countPulse, RISING);
Serial.begin(9600);
}
void loop() {
pulseCount = 0;
interrupts();
delay(1000); // Measure for 1 second
noInterrupts();
float flowRate = pulseCount / 7.5;
Serial.print("Flow rate: ");
Serial.print(flowRate);
Serial.println(" L/min");
}
void countPulse() {
pulseCount++;
}
Applications:
-
Smart water metering systems
-
IoT-based irrigation and garden automation
-
Water level and usage monitoring
-
Water dispensers and coffee machines
-
Flow control in RO and aquaponics systems
-
Tank inlet/outlet flow tracking
-
Industrial liquid flow tracking
Package Includes:
-
1 x YF-S201 Water Flow Sensor
0 Reviews For this Product
