Your shopping cart is empty!

Monitor Water Flow with ESP32 and a Flow Sensor
- Idris Zainal Abidin
- 02 Oct 2019
- Tutorial
- Beginner
- 18757
Introduction
There have several case where water usage can suddenly spike, just because of water pipe broken under the ground. The sad thing is you only noticed after you get the latest water bill. So in this tutorial I will share with you on how to interface water flow sensor with ESP32 board. Later we will develop notification system if the water usage exceeds certain value.
Video
This video is show on how to interface water flow sensor with ESP32 board.
Hardware Preparation
This is the list of items used in the video.
$12.25 $16.50
$12.25
$7.25 $7.25
$0.63 $0.90
$0.63Hardware Components
G1/2" Half Effect Water Flow Sensor - YF-S201
NodeMCU ESP32
40-Way 20cm Dupont Jumper Wire
Sample Program
This is the sample program to measure water flow rate and the total water flow through the sensor.
Thank You
References:
- G 1/2 Water Flow Sensor Datasheet
- Working with Water Flow Sensors & Arduino
- ESP32 with PIR Motion Sensor using Interrupts and Timers
Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.