By counting these pulses over a second, your microcontroller can calculate both the flow rate and the total volume of water passed.

The YF-S201 hall-effect water flow sensor is a staple component in automated fluid monitoring projects, ranging from smart irrigation systems to digital beverage dispensers. However, building and debugging these systems physically can lead to water damage, messy workspaces, and wasted development time.

The standard conversion formula provided by the manufacturer is: