About this product
YF-S201 Hall-effect water flow sensor
RS1300 is a black inline YF-S201 water flow sensor for learning, water-use monitoring and microcontroller experiments. Water turns an internal rotor, and a Hall-effect pickup produces digital pulses. A controller counts these pulses to estimate flow rate or total volume. The sensor measures flow; it is not a shut-off valve.
Main details
Model: YF-S201, with black plastic body.
Listed measuring range: 1 to 30 litres per minute.
Connection: nominal G1/2-inch threaded ports.
Interface: three wires for supply, ground and pulse output.
Package: 1 x water flow sensor, SKU RS1300.
The nominal pipe size is not the measured outside thread diameter. Check thread standard, seals and mating fittings before installation. Do not force an incompatible fitting onto the plastic ports.
Wiring and controller input
The usual wire functions are red for supply, black for ground and yellow for the pulse signal. Verify the supplied unit rather than guessing connector pin order from a photo. The existing listed supply range is 5 to 18V DC; use a regulated 5V supply for initial tests and confirm the unit rating before using another voltage.
Share the correct ground reference with the controller and count pulses on a suitable digital input, preferably using a hardware counter or interrupt. This is a frequency signal, not an analogue flow voltage. A sensor powered at 5V can produce a signal too high for a 3.3V GPIO. Use a suitable level interface for ESP32, Raspberry Pi and similar inputs, and verify the actual signal level before connecting.
Convert and calibrate
A common nominal conversion is frequency in hertz = 7.5 x flow in L/min, equivalent to about 450 pulses per litre. Treat this as a starting factor. Pass a known volume through the installed sensor, count the pulses and calculate your own pulses-per-litre value. Repeat at the intended flow rate and mounting position; pressure, orientation and flow conditions affect the result.
Installation checks
Shut off and depressurise the line before fitting. Follow the flow arrow on the actual body, keep debris out of the rotor and leak-test the joints. Keep exposed wiring and controller electronics dry. Confirm the supplied unit's pressure and temperature limits before use; no potable-water, food-contact or billing-grade certification is claimed. Controller, adapters and plumbing parts are not included.