Two thoughts , the “easy” would be to add a Gauge where the Max value is the max output of your sensor. Visually you will then see where the level is at. (That is I assume , you want to display in Grafana)
The other would be to either do the math at the sensor or at the program before you send the data to Grafana.
Side question , how do you prevent the sensor from going belly up due the the condensation from the water?
going to circle back, so figure out that with Grafana gage you can set min and max… so sort of answering that question, but north actual use case is to show the size/fill % of water tanks, and realised I actually wanna do this inside Home Assistant, so back to the HA forum… sure HA can do it.
have a the graphic consume levels from a mqtt topic.
side answer, has not figured the side question out, make that have not even thought about it…
but on the HA forum I keep doing across the following sensor, (Waterproof Ultrasonic Sensor with Separate Probe-DFRobot), so V2 of this might be redone with this sensor eventually.
I’d still stay with the RPi boards, like the easy coding of it… or make that jsut very familiar with them… side answer 2… if we can bl00dy find stock…
need to see if i can order some from UK shop and have them shipped to a mate that side, SA has f’all avail.
Ah , cool didn’t realize that you got those in waterproof. Thanks !
I played with water levels at one stage but the distance sensor packed up after about a month, the board was corroded , so I assumed that it must come from the condensation.
I am now playing with a optical encoder to sense the level.
The little secondary experience I have with InfluxDB makes me hate it almost as much as I hate MySQL. Unlike MySQL though, it is actually fast in its intended purpose, while MySQL just fosters the writing of bad SQL
My V1 also started out with the regular ultrasonic sensor but as Paul pointed out, these corrode and eventually pack up.
My V2 now uses the waterproof ultrasonic sensor you link to which doesn’t corrode but is affected by condensation and temperature, I get erratic spikes and you’ll also note from the image below that based on time of day as the temperature increases the sensor reports higher water levels (variance ~10%).
I have another software sensors that smooths out this data but its still far from perfect, I’m not too worried as the levels are not critical for me but if you need accurate data you need to look at other options. There are pressure sensors that apparently work very well but I think they are expensive.
Hi have the GX Tank and 1 sensor.
I bought sensor and then extended the 5m sensor cable to 10 and I think it can be extended a lot further.
GX Tank has a 5m USB cable to the CerboGX.
Works a treat and has 4x sensor “slots”
I then send the MQTT data from the Cerbo to Node Red.