Laser time-of-flight (TOF) sensor, measuring distance to water surface. Problematic due to water's transparency; may be improved by using a tethered float with a cat's eye retroreflector to make a proper return signal (maybe. Maybe use a weighted bobber in a tube with the cat's eye on top?) TOF sensors are not too expensive. But, and are conveniently available as modules. For a display application they need a microcontroller (and can be bought that way as modules.) Appears to be a popular hacking project.
Hydrostatic (pressure) sensor, suspended from the top with the sensor at the bottom. Popular choice for cisterns; easy to install and service. Lots of off-the-shelf products from modest to expensive. NeedsAgain, for a display, needs a microcontroller. Shows up as an Arduino project.
Of all these, the hydrostatic approach seems to offer the most ready-to-go options for display, including wireless monitoring to your phone if you wish. All from a single sensor from no moving parts. How cool is that?
If you want to do your own controller, vertical tank math using a pressure sensor is simplestraightforward: pressure is proportional to tank fill height;height (we'll see how below); volume is cross-section area x height.
How to compute tank fill height from pressure? We start with the physical properties of a water column:
- Pressure = height x density x g
so,
- Height = pressure / (density x g)
Where g is gravity acceleration (9.81m/s^2).
Conveniently, we notesee that that 1m water height is 9.81 kPa in pressure. This gives us the linear relationship of 9.81 kPa/m.
Thus, we compute metric tank volume, in m^3, as:
TheThis pressure method gives precise, real-time volume data. With suitableDo some post-processing and you can calculate dynamic usage, and even detect unusual activity like leaks.
This applies toYou could also do this with the capacitive and laser sensor approaches too. But at the risk of overselling it, as I said the pressure approach appears to have many more ready-made solutions for cisterns than those other methods.