Water sensor

Hello! I’m trying to monitor the flow of liquid with this sensor and code:


The example code is ok, but I want to know the total volume.
How can I do to get the total volume in litre?
This sensor can be used with oil?


Anybody? :slight_smile:

That program outputs the Liters per Hour. You simply multiply that times hours to get liters. So, if you want a reading ever 10 seconds, you would just take the Liters/Hour measurement and multiply it times .00278 to convert that to Liters during that 10-second period.