YF-S201 Water Flow Sensor
Hall-Effect Pulse Output for Liquid Flow Measurement
The YF-S201 measures flow rate using a small pinwheel turbine mounted directly in the water path - as water flows through the sensor body, it spins this pinwheel at a rate proportional to how fast the water is moving, and a small magnet embedded in the pinwheel passes a Hall-effect sensor once per rotation, generating one electrical pulse per pass. Your microcontroller counts these pulses over a known time window (typically one second) and, using the sensor's documented pulses-per-liter calibration factor, converts that pulse count directly into a flow rate in liters per minute - and by keeping a running total of pulses over time, into cumulative volume as well, the same basic principle water utility meters use. Because it's a mechanical turbine rather than an electronic-only sensing method, it has real physical limits worth respecting: a minimum flow rate below which the pinwheel won't spin reliably, and a maximum rated pressure and flow rate beyond which the plastic housing and turbine bearing wear out faster or fail outright.
Key features
Hall-Effect Pulse Output
A clean digital pulse train, one pulse per turbine rotation.
Simple Flow Rate Calculation
Pulse frequency converts directly to liters/minute with one constant.
Cumulative Volume Tracking
Running pulse totals give total liters dispensed over time.
Wide Flow Range
Rated from roughly 1 to 30 liters per minute.
Easy 3-Wire Connection
Power, ground, and a single digital pulse output.
Widely Documented
A long-standing hobbyist favorite with abundant example code.


