Monitor Water Flow with ESP32 and a Flow Sensor

Monitor Water Flow with ESP32 and a Flow Sensor

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.

Hardware Components

G1/2" Half Effect Water Flow Sensor - YF-S201 -26% Backorder Only
x 1 unit(s)

NodeMCU ESP32

$7.25 $7.25

x 1 unit(s)
40-Way 20cm Dupont Jumper Wire -31% Best Seller
x 1 unit(s)

Sample Program

This is the sample program to measure water flow rate and the total water flow through the sensor.

 

Thank You

References:

Thanks for reading this tutorial. If you have any technical inquiry, please post at Cytron Technical Forum.

 


Related Posts