Measure water or liquid flow rate and quantity using this very simple DIY project. Just upload the code here and interface the arduino flow rate sensor.
Instructions on how to interface the sensor and the arduino code can.
The original calculation was based on 4. Great you have not mentioned which flow sensor are you using. I am assuming that you are using flow sensor YF-S2or.
Example code for the Adafruit liquid flow meters.
Contribute to Adafruit-Flow-Meter development by creating an account on GitHub. Arduino YF-S2Flow Sensor calibration and usage. It has pwm output to interface with Arduino. When water flows through the rotor, rotor rolls.