The flow sensor (YF S201) is used to measure the flow of a liquid or gas.

When water or air passes through the flow sensor, the blades of a fan inside the sensor turn. As they turn, they generate electricity.

https://5.imimg.com/data5/WS/EQ/MY-12329929/dn25-1inch-water-flow-sensor-500x500.jpg

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/eb185d2c-fcff-4819-8608-ea34ee17f26e/Sensor_Flow.png

Examples:

  1. Water Meter: sensor measures the volume or flow rate of water at a tap to alert when there is too much water being used.
  2. Lung Capacity Meter: sensor measures how much air a person can blow out to determine their lung capacity.
  3. Shower Flow Monitor: sensor measures how much water is being used to alert when there is excess usage.

Units:

Pin:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/928bbf09-0419-4084-9ade-02f372dbef4b/Input_Flow_sensor-01.jpg

Installation

  1. Connect the flow sensor to the tap - rotate it until it is tight enough. Use FTA (female threaded adapter/Threaded Collars to fix the sensor to the pipes.
  2. Tighten the FTA using a spanner and use the teflon tape to prevent any leakages that might happen.

Code