Water Level sensor + MQTT

Hi all

Got some pressure sensors on the way from Aliexpress.

1 x 10Bar - Water pressure after booster pump
2 x .5 Bar - Water pressure at the bottom of tank n pipe to booster pump
1 drop in 5M - Will be configured for a friend, he has a cement tank that has a drop in pump, so will add a drop in sensor lying at the bottom.

All are 5v based.

I'm looking for a sketch's that can measure the voltage, convert to water level after having been zero'd, but then send the data to MQTT broker.

I have some Nodemcu's and D1 Mini's available.

G

Good luck. Your description seems like a quite unique project.

No mention of tank height or output voltage of your sensors?
Normally one considers when measuring pressure of the water column. Looking at the relationship 1.0 psi of pressure is 27.707 inches of water column. For those across the pond this would be 0.5 Bar is 5.0987214446105 meters of WC. That's an awful tall tank.

You apply the math functions in your code. The forums do have a section for paid code where you can pay a member to write your code. Now if you write (roll your own) code members will help but you need to do the work and provide details like links to your sensors and a wiring diagram of your setup.

Ron

This is two or three separate projects. Read the sensor. Convert to pressure. Send results to MQTT. Each of those exists independently of the others.

various tanks. 2 x 2.5 m (using 0.5bar sensors)
1 post booster pump that can boost 0-6bar.
and 1 x 4m tank. that is where the drop in sensor will go capable of 5m sensing.

output voltage for all sensors are all 0-5v

G

ye, realise that... allot of projects that only does measure... why i'm asking for something that includes mqtt. otherwise i'll do using python on a pi zero.. which is my sandbox.

G

OK, so your sensors output 0 to 5 Volts. So on your two 0.5 bar sensors it becomes 0.0 to 0.5 Bar becomes 0.0 to 5.0 volts. Your 0.0 to 1.0 Bar sensor becomes 0.0 to 1.0 Bar becomes 0.0 to 5.0 Volts. You know the math to plot it. You can use just about any protocol including but not limited to MQTT. If a wireless network is available you can send the data wireless. Personally for what you want to do a simple Arduino Uno or similar uC will do fine with the code in C+.

Ron