ESPHome water level sensor

This is best way to solve the problem.

If you leave air in the tube, you will never completely get rid of drift.

Because if there is any water in the tube you will be measuring the pressure at the top of the water, not the bottom of the tube. And with an open end in water it will inevitably fill at least partially over time for various reasons.

When container is empty the pressure difference is zero.
Tube can be filled with air, water or olive oil, or combination of them, as long as there is no pressure inside the tube.
When you fill the container, pressure increases. It there is ā€œminimumā€ leakage through the pipe or connections, the reading is not valid anymore.

if you want to measure from the top, consider this:

I have not tried it yet, but have been considering their one for soil.

Hello Karosm,

the issue has been resolved. The problem stemmed from the silicon hose that was not airtight. I replaced the silicone hose with a PVC one, and now it functions perfectly.

Thank you for your support.
I appreciated it very much.

Regards
Alexander

Hello mekaneck,

the issue has been resolved, at least for me. My problem stemmed from the silicon hose that was not airtight. I replaced the silicone hose with a PVC one, and now it works perfectly.

Thank you for your support.
I appreciated it very much.

Regards
Alexander

Hello clydebarrow,

the issue has been resolved. The problem originated from the silicone hose that was not airtight. I replaced it with a PVC hose, and now it functions perfectly. When the tank is filled, a few millimeters of water remain at the lower end of the hose. As long as air is trapped within the hose and cannot escape, a consistent equilibrium is maintained, primarily dependent on the water level in the tank. This method is more than sufficient for my motorhome’s water tank, as it empties every 4-5 days, making the dissolution of air in the water negligible.

Thank you for your support.
I appreciated it very much.

Regards
Alexander

Most likely it is just spurious returns from the ultrasonic sensor. I gave up on them due to that…

Has anyone tried the 3.3V out 5V supply version of this?

https://vi.aliexpress.com/item/1005005928682318.html

I have a couple on order. Should be easy to connect to an ESP ADC i/p.

Yes I do.

Working for three years

Your version was not available so I went for 0-5v and used ADS1115 with 5v supply (to allow VIN to be measured to 5v).

Approx 25m cable and tank some 2m deep

Note that the small red tube is pressure equalisation; needs to be terminated in a dry ā€œopenā€ terminal box. There are reports that that these units have failed. My suspicion is that humid air makes it way back down the tube from the top. Execution is everything! Also avoid kinks!

I do get some fluctuations but found that some fiddling with filters helped. It is accurate enough to estimate flow out of the tank. 6,750 litre rain water recycling tank

1 Like

Not the 3.3V out 5V supply version, no. I do have two of these (0-10V, range 3m, 5m cable) connected to a couple of Shelly Uni (so the transducers are getting 3.3V). Working well.

I chose the 0-10V version for better resolution. As JulianDH notes, it’s worthwhile filtering the entity. I’m using an outlier filter.

I have one of these units but purchased it through Newcastle vendor Core Electronics. Yeah I spent more but haven’t had an issue so happy so far. However mine is connected to a shelly uni. Absolutely gold - no fiddling with adc’s and stuff. It really was plug and play - well almost.
I ended up running a 24v cable to the top tank to power the shelly and have now had 1 year trouble free operation. previously i was trying to have a solar and battery setup but that meant mucking around with trying to get my initial esp32 setup to sleep etc. Then when a few days of no sun in winter it meant that data was not being sent.
Look at the uni is my thoughts

I’ve been using a similar 4-20mA current loop one in a rainwater tank (with I>V converter into ESP32 ADC) for almost 3yrs now. First unit failed after a couple of years, hoping the second lasts longer.

Very happy with the performance. You can see small variations (+/-0.01V) in adjacent readings so best to sample then average / filter.