YF-S201 Water Flow Measurement Sensor with 1-30Liter/min Flow Rate – Black

  • Measures water flow from 1–30 L/min
  • Built-in Hall effect sensor for pulse output
  • Outputs ~2.25 ml per pulse
  • 3-wire interface: 5V (Red), GND (Black), Signal (Yellow)
  • Easy to install, compact design
  • Requires calibration for accurate readings
  • Ideal for water dispensing and basic flow monitoring

Apple Shopping Event

Hurry and get discounts on all Apple devices up to 20%

220,00 EGP

17 People watching this product now!

Payment Methods:

Description

This is YF-S201 Water Flow meter Measurement Sensor with 1-30Leter/min Flow Rate in black colour. This sensor sits in line with your water line and contains a pinwheel sensor to measure how much liquid has moved through it. There’s an integrated magnetic hall effect sensor that outputs an electrical pulse with every revolution. The hall effect sensor is sealed from the water pipe and allows the sensor to stay safe and dry.

By counting the pulses from the output of the sensor, you can easily calculate water flow. Each pulse is approximately 2.25 millilitres.

Note this isn’t a precision sensor, and the pulse rate does vary a bit depending on the flow rate, fluid pressure, and sensor orientation. It will need careful calibration if better than 10% precision is required. However, it’s great for basic measurement tasks!

We have an example Arduino sketch(check the ATTACHMENTS tab) that is useful to quickly test the sensor; it will calculate the approximate flow of water in liters/hour. The pulse signal is a simple square wave so it’s quite easy to log and convert into liters per minute using the following formula.

Connection

Red wire+5V
Black wireGND
Yellow wirePWM output


Features :

  1. The simple and compact module.
  2. Easy to Install.
  3. High Sealing Performance.
  4. High-Quality Hall Effect Sensor.

Package Includes :

1 x YF-S201 Water Flow meter Measurement Sensor with 1-30Liter/min Flow Rate – Black.

🔌
Pin Connections
1 Table
Pin Connections Table 1
BoardSensor PinConnection
YF-S201Red/Black/Yellow5-24V / GND / board interrupt-capable pin
📟
YF-S201 Water Flow Measurement Sensor with 1-30Liter/min Flow Rate - Black
7 Examples • C/C++ | Boards: Arduino Uno, Arduino Nano, Arduino Mega, ESP32, ESP8266, STM32, Raspberry Pi Pico
YF-S201 Water Flow Measurement Sensor with 1-30Liter/min Flow Rate - Black - Arduino Uno
YF-S201 Water Flow Measurement Sensor with 1-30Liter/min Flow Rate - Black - Arduino Nano
YF-S201 Water Flow Measurement Sensor with 1-30Liter/min Flow Rate - Black - Arduino Mega
YF-S201 Water Flow Measurement Sensor with 1-30Liter/min Flow Rate - Black - ESP32
YF-S201 Water Flow Measurement Sensor with 1-30Liter/min Flow Rate - Black - ESP8266
YF-S201 Water Flow Measurement Sensor with 1-30Liter/min Flow Rate - Black - STM32
YF-S201 Water Flow Measurement Sensor with 1-30Liter/min Flow Rate - Black - Raspberry Pi Pico
📄 File: yf-s201_water_flow_measurement_sensor_with_1-30liter/min_flow_rate_-_black_-_arduino_uno.inoArduino Uno
655 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Signal pin 2 on Arduino Uno (needs an interrupt-capable pin)
6#define FLOW_PIN 2
7volatile unsigned long pulseCount = 0;
8
9void countPulse() { pulseCount++; }
10
11void setup() {
12 Serial.begin(115200);
13 pinMode(FLOW_PIN, INPUT_PULLUP);
14 attachInterrupt(digitalPinToInterrupt(FLOW_PIN), countPulse, FALLING);
15}
16
17void loop() {
18 delay(1000);
19 noInterrupts();
20 unsigned long count = pulseCount;
21 pulseCount = 0;
22 interrupts();
23
24 float litersPerMin = count / 7.5; // YF-S201 datasheet: ~7.5 pulses per liter/min
25 Serial.print("Flow: "); Serial.print(litersPerMin); Serial.println(" L/min");
26}
📄 File: yf-s201_water_flow_measurement_sensor_with_1-30liter/min_flow_rate_-_black_-_arduino_nano.inoArduino Nano
656 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Signal pin 2 on Arduino Nano (needs an interrupt-capable pin)
6#define FLOW_PIN 2
7volatile unsigned long pulseCount = 0;
8
9void countPulse() { pulseCount++; }
10
11void setup() {
12 Serial.begin(115200);
13 pinMode(FLOW_PIN, INPUT_PULLUP);
14 attachInterrupt(digitalPinToInterrupt(FLOW_PIN), countPulse, FALLING);
15}
16
17void loop() {
18 delay(1000);
19 noInterrupts();
20 unsigned long count = pulseCount;
21 pulseCount = 0;
22 interrupts();
23
24 float litersPerMin = count / 7.5; // YF-S201 datasheet: ~7.5 pulses per liter/min
25 Serial.print("Flow: "); Serial.print(litersPerMin); Serial.println(" L/min");
26}
📄 File: yf-s201_water_flow_measurement_sensor_with_1-30liter/min_flow_rate_-_black_-_arduino_mega.inoArduino Mega
656 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Signal pin 2 on Arduino Mega (needs an interrupt-capable pin)
6#define FLOW_PIN 2
7volatile unsigned long pulseCount = 0;
8
9void countPulse() { pulseCount++; }
10
11void setup() {
12 Serial.begin(115200);
13 pinMode(FLOW_PIN, INPUT_PULLUP);
14 attachInterrupt(digitalPinToInterrupt(FLOW_PIN), countPulse, FALLING);
15}
16
17void loop() {
18 delay(1000);
19 noInterrupts();
20 unsigned long count = pulseCount;
21 pulseCount = 0;
22 interrupts();
23
24 float litersPerMin = count / 7.5; // YF-S201 datasheet: ~7.5 pulses per liter/min
25 Serial.print("Flow: "); Serial.print(litersPerMin); Serial.println(" L/min");
26}
📄 File: yf-s201_water_flow_measurement_sensor_with_1-30liter/min_flow_rate_-_black_-_esp32.inoESP32
651 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Signal pin 27 on ESP32 (needs an interrupt-capable pin)
6#define FLOW_PIN 27
7volatile unsigned long pulseCount = 0;
8
9void countPulse() { pulseCount++; }
10
11void setup() {
12 Serial.begin(115200);
13 pinMode(FLOW_PIN, INPUT_PULLUP);
14 attachInterrupt(digitalPinToInterrupt(FLOW_PIN), countPulse, FALLING);
15}
16
17void loop() {
18 delay(1000);
19 noInterrupts();
20 unsigned long count = pulseCount;
21 pulseCount = 0;
22 interrupts();
23
24 float litersPerMin = count / 7.5; // YF-S201 datasheet: ~7.5 pulses per liter/min
25 Serial.print("Flow: "); Serial.print(litersPerMin); Serial.println(" L/min");
26}
📄 File: yf-s201_water_flow_measurement_sensor_with_1-30liter/min_flow_rate_-_black_-_esp8266.inoESP8266
653 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Signal pin D5 on ESP8266 (needs an interrupt-capable pin)
6#define FLOW_PIN D5
7volatile unsigned long pulseCount = 0;
8
9void countPulse() { pulseCount++; }
10
11void setup() {
12 Serial.begin(115200);
13 pinMode(FLOW_PIN, INPUT_PULLUP);
14 attachInterrupt(digitalPinToInterrupt(FLOW_PIN), countPulse, FALLING);
15}
16
17void loop() {
18 delay(1000);
19 noInterrupts();
20 unsigned long count = pulseCount;
21 pulseCount = 0;
22 interrupts();
23
24 float litersPerMin = count / 7.5; // YF-S201 datasheet: ~7.5 pulses per liter/min
25 Serial.print("Flow: "); Serial.print(litersPerMin); Serial.println(" L/min");
26}
📄 File: yf-s201_water_flow_measurement_sensor_with_1-30liter/min_flow_rate_-_black_-_stm32.inoSTM32
653 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Signal pin PA1 on STM32 (needs an interrupt-capable pin)
6#define FLOW_PIN PA1
7volatile unsigned long pulseCount = 0;
8
9void countPulse() { pulseCount++; }
10
11void setup() {
12 Serial.begin(115200);
13 pinMode(FLOW_PIN, INPUT_PULLUP);
14 attachInterrupt(digitalPinToInterrupt(FLOW_PIN), countPulse, FALLING);
15}
16
17void loop() {
18 delay(1000);
19 noInterrupts();
20 unsigned long count = pulseCount;
21 pulseCount = 0;
22 interrupts();
23
24 float litersPerMin = count / 7.5; // YF-S201 datasheet: ~7.5 pulses per liter/min
25 Serial.print("Flow: "); Serial.print(litersPerMin); Serial.println(" L/min");
26}
📄 File: yf-s201_water_flow_measurement_sensor_with_1-30liter/min_flow_rate_-_black_-_raspberry_pi_pico.inoRaspberry Pi Pico
661 characters
1//ekostra.com
2//electronics store in egypt
3//+201008896258
4
5// Signal pin 3 on Raspberry Pi Pico (needs an interrupt-capable pin)
6#define FLOW_PIN 3
7volatile unsigned long pulseCount = 0;
8
9void countPulse() { pulseCount++; }
10
11void setup() {
12 Serial.begin(115200);
13 pinMode(FLOW_PIN, INPUT_PULLUP);
14 attachInterrupt(digitalPinToInterrupt(FLOW_PIN), countPulse, FALLING);
15}
16
17void loop() {
18 delay(1000);
19 noInterrupts();
20 unsigned long count = pulseCount;
21 pulseCount = 0;
22 interrupts();
23
24 float litersPerMin = count / 7.5; // YF-S201 datasheet: ~7.5 pulses per liter/min
25 Serial.print("Flow: "); Serial.print(litersPerMin); Serial.println(" L/min");
26}
Hall-effect water flow sensor - counts pulses proportional to flow rate.

Specification

Specification

WeightWeight6 g
Dimensions7 × 4 × 2,5 cm
Product NameYF-S201 Water Flow Sensor – 1–30 L/min, Black
TypeHall Effect Water Flow Sensor
ModelYF-S201
Flow Rate Range1–30 L/min
Operating Voltage5–24 V DC
Output TypeDigital Pulse Output (Hall Effect)
Maximum Pressure1.75 MPa
Pipe Size1/2 inch (typical)
MaterialPlastic Body (ABS) with Metal Rotor
Operating Temperature0°C to +80°C
ApplicationsWater Flow Measurement, Arduino / Microcontroller Projects, DIY Water Systems, Irrigation, Liquid Monitoring
Package Contents1× YF-S201 Water Flow Measurement Sensor – 1–30 L/min, Black

Customer Reviews