# \[ANNOUNCE\] node-red-contrib-tank-volume: beta

**URL:** https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101
**Category:** Share Your Nodes
**Created:** [13 June 2021 12:58 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101 "2021-06-13T12:58:38Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![molesworth](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/molesworth/32/11748_2.png) [@molesworth](https://discourse.nodered.org/u/molesworth)
#### Post date: [13 June 2021 21:39 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/21 "2021-06-13T21:39:51Z")

</div>

Thanks for the info. Tasmotoa looks like a handy framework, and great for plug'n'play use. My own one is much simpler and easier to maintain, and having spent a lot of years developing embedded software and APIs I wanted something I fully understood and could debug if anything isn't working properly.

Plus, it's more fun doing it all from scratch 😉

---

<div class="post-metadata">

### Author: ![SonoraTechnical](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sonoratechnical/32/20033_2.png) [@SonoraTechnical](https://discourse.nodered.org/u/SonoraTechnical)
#### Post date: [14 June 2021 01:03 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/22 "2021-06-14T01:03:49Z")

</div>

Bart,  
Thank you for developing this... I'm going to give it a go!!

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [14 June 2021 04:48 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/23 "2021-06-14T04:48:20Z")

</div>

Yep i use a few of those sensors and they are great - they can be connected to a NodeMCU (or equivalent) with no dramas - there are two versions of them one is 3.3v and the other is 5v. Tasmota supports these using the Tasmota-Sensors binary package.

Note that these units have a deadspot of about 20cm - due to the fact that they are an all in one unit - they have to send out the ultrasonic wave, then turn off the unit and then back on listening for the bounce back.

Craig

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [14 June 2021 05:42 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/24 "2021-06-14T05:42:45Z")

</div>

Hi @SonoraTechnical,  
Thanks! There is a bug ib the metric conversion, which I will need to fix tonight.

---

<div class="post-metadata">

### Author: ![bobcroft](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobcroft/32/52443_2.png) [@bobcroft](https://discourse.nodered.org/u/bobcroft)
#### Post date: [14 June 2021 16:00 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/25 "2021-06-14T16:00:40Z")

</div>

Measuring the depth of clear water is one of the most challenging tasks for people like us who like to 'roll their own' systems. Laser (light sensors) do not do well because of reflectivity issues. Ultrasonic sensors do not like moisture, although some claim to be waterproof. Capacitive sensors work well but are not easy to make. Mechanical switches that may arc cannot be used with flammable liquids. Hall effect float switches should be Ok.  
One thought would be to install a series of hall effect switches in a waterproof tube, each with a different load resistor thereby creating a different output depending on which switch is activated. A float with an embedded magnet would operate the hall effect devices. A bit like an R-2R ladder with a hall device every 100 mm say.  
Pressure switches at the bottom of the tank work well but can be expensive.

---

<div class="post-metadata">

### Author: ![molesworth](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/molesworth/32/11748_2.png) [@molesworth](https://discourse.nodered.org/u/molesworth)
#### Post date: [14 June 2021 16:40 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/26 "2021-06-14T16:40:04Z")

</div>

> [@bobcroft](#):
>
> Measuring the depth of clear water is one of the most challenging tasks for people like us who like to 'roll their own' systems. Laser (light sensors) do not do well because of reflectivity issues. Ultrasonic sensors do not like moisture, although some claim to be waterproof.

I've ordered the waterproof ultrasonic sensor mentioned by Bart above and a laser-based one as well for comparison, so I'll try them out in various situations and do an update with info on their performance once they arrive.

---

<div class="post-metadata">

### Author: ![Urs-Eppenberger](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/urs-eppenberger/32/28_2.png) [@Urs-Eppenberger](https://discourse.nodered.org/u/Urs-Eppenberger)
#### Post date: [14 June 2021 16:54 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/27 "2021-06-14T16:54:57Z")

</div>

I had several Sonoff (TH10 and POW) devices in my HA system with my own code running. I wanted to measure a huge rainwater tank (almost 30m3 of clear water).  
I used the HY-SRF05 ultrasonic sensor and patched the Sonoff TH10 to supply 5V instead of 3.3V on the TRRS plug. See photo on where to cut. Then just connect the 5V pin from the LDO to the corresponding pin of the TRRS plug. The sensor works flawlessly.  
And since the Sonoff TH10 also offers a 220V relay, I can switch the pump with the same device.

 ![IMG_3866](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/172460a6b374017f52e33d3e70c2248f158232f0.jpeg)

---

<div class="post-metadata">

### Author: ![bobcroft](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bobcroft/32/52443_2.png) [@bobcroft](https://discourse.nodered.org/u/bobcroft)
#### Post date: [14 June 2021 18:03 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/28 "2021-06-14T18:03:23Z")

</div>

That good to hear, did you do anything to waterproof the HY-SRF05 device? I don't use Sonoff or Tasmota although I do have some Sonoff devices. I prefer to make my own hardware and write my own code, probably because I like to make my life harder:). do you have a source for the HY-SRF05 module please.

---

<div class="post-metadata">

### Author: ![Urs-Eppenberger](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/urs-eppenberger/32/28_2.png) [@Urs-Eppenberger](https://discourse.nodered.org/u/Urs-Eppenberger)
#### Post date: [14 June 2021 18:54 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/29 "2021-06-14T18:54:37Z")

</div>

I sent a direct message with my ESP8266 code for the HY-SRF05 module.  
If there is broader interest, I could also share it on the ESP8266 Community Forum. Just let me know.

---

<div class="post-metadata">

### Author: ![SonoraTechnical](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sonoratechnical/32/20033_2.png) [@SonoraTechnical](https://discourse.nodered.org/u/SonoraTechnical)
#### Post date: [14 June 2021 21:27 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/30 "2021-06-14T21:27:02Z")

</div>

Not trying to hijack Bart's thread... but I do have a question related to the topic of tank volume (based on level).

How reliable have you found these devices when subject to very high humidity? Or high heat and humidity?

[https://user-images.githubusercontent.com/5904370/68340827-75155880-00e7-11ea-8f79-efd47bd421bc.png](https://discourse.nodered.org/uploads/short-url/vHS3Zoqwo0tkPuuvU7RREBdEDtz.png)

 ![](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/de38f94e7b71277ed69dfe7eb0b02cf13d440e35.png)

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [15 June 2021 20:29 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/31 "2021-06-15T20:29:10Z")

</div>

> [@molesworth](#):
>
> I use a simple Excel spreadsheet based on a table the tank manufacturer supplied. However, inspired by your idea I can probably put together a flow to do the table interpolation

Hi @molesworth,  
This was great input! It would have been a shame if my node didn't offer support for such kind of tanks. So I have introduced tabsheets in my config screen. When you choose as tank type _**"Custom (table)"**_, the last tabsheet will become enabled. On that tabsheet you can enter your manufacturer data, so my node will do the linear interpolation during the calculation of that tank type:

![tank_volume_tabsheets](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/8/68832c4524ecf8aa173c12e29e7de6e9d204d817.gif)

There is a new [section](https://github.com/bartbutenaers/node-red-contrib-tank-volume#custom-tanks) on my readme page about custom tank types. I have taken the liberty to use your tank photograph ...

> [@hominidae](#):
>
> ...perfect...the volume between min and max level is the net usable volume of the tank.

@hominidae: Also great input! The two limits are now on the config screen:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/0/a0ff72a24b3e7815081a31a2ce57b70d422883b3.png)

And there is a [section](https://github.com/bartbutenaers/node-red-contrib-tank-volume#usable-volume-and-limits) on the config screen to explain this feature:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/c/4c6048f15dc51198d6029b758521fa38d5a843e4.png)

The output message contains some extra fields, as also describe on the readme page: `usableVolume`, `usableFilledVolume`, `usableEmptyVolume`.

> [@hominidae](#):
>
> But is "empty volume" the correct naming for this part? It sounds wrong in my head but I am not a native english tongue.  
> Maybe "(already) emptied volume", "refillable volume" or "refill volume" is/sound better?

I'm dutch speaking myself, so don't know. On [wikipedia](https://en.wikipedia.org/wiki/Ullage) they call it **Ullage** or **headspace** , but that sounds even more non-self-explaining to me.  
Does somebody else have a proposal?

_ **It would be nice if some folks could do some tests with this node. There are a lot of online tank calculators available, so you can easily compare the results... Thanks!!!!** _

---

<div class="post-metadata">

### Author: ![Folgore](https://avatars.discourse-cdn.com/v4/letter/f/edb3f5/32.png) [@Folgore](https://discourse.nodered.org/u/Folgore)
#### Post date: [15 June 2021 20:31 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/32 "2021-06-15T20:31:10Z")

</div>

Uao....great job

---

<div class="post-metadata">

### Author: ![molesworth](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/molesworth/32/11748_2.png) [@molesworth](https://discourse.nodered.org/u/molesworth)
#### Post date: [15 June 2021 21:30 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/33 "2021-06-15T21:30:40Z")

</div>

> [@BartButenaers](#):
>
> Hi @molesworth,  
> This was great input! It would have been a shame if my node didn't offer support for such kind of tanks. So I have introduced tabsheets in my config screen. When you choose as tank type _**"Custom (table)"**_ , the last tabsheet will become enabled. On that tabsheet you can enter your manufacturer data, so my node will do the linear interpolation during the calculation of that tank type:

Wow! Thank you for that @BartButenaers 👍

Once the sensors arrive I'll set up some tests and try your node out. It looks like it will do exactly what's needed, and I can add oil level to my dashboard 🙂

---

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [16 June 2021 06:02 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/34 "2021-06-16T06:02:26Z")

</div>

I found these were great for about a month or so - then humidity and general water ingress from being close to a water tank ended up killing them.

I have had 4 of the Waterproof versions running on water and oil tanks for more than 2 years now with no issues - originally started with ESPEasy and then moved to Tasmota.

Craig

---

<div class="post-metadata">

### Author: ![dougle03](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dougle03/32/32979_2.png) [@dougle03](https://discourse.nodered.org/u/dougle03)
#### Post date: [17 June 2021 05:39 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/35 "2021-06-17T05:39:04Z")

</div>

These resistive float sensors are an option, they are fully sealed and made of stainless and range from 150mm to 1000mm depths.  
[Depth Sensor (Sealed resistive)](https://amzn.to/2SFifQK)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/8/081b41270a9d7a28199707962ccab1a2ca8ea26f.jpeg)  
They do require a bit of effort to get a linear range output, but worth the effort.

---

<div class="post-metadata">

### Author: ![Argus.Tuft](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Argus.Tuft](https://discourse.nodered.org/u/Argus.Tuft)
#### Post date: [17 June 2021 07:58 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/36 "2021-06-17T07:58:40Z")

</div>

Available Volume ?

---

<div class="post-metadata">

### Author: ![mune](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mune/32/37105_2.png) [@mune](https://discourse.nodered.org/u/mune)
#### Post date: [17 June 2021 08:25 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/38 "2021-06-17T08:25:34Z")

</div>

I bought the same in a webshop for the Raspberry [tutorial for hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi](https://thepihut.com/blogs/raspberry-pi-tutorials/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi).  
Now it is waiting for me to finish a project I'm working on, to use it in a hydroponic system I suspended the developing.  
I haven't used the ultra-sensor, yet. (I just tried it on the desk).

---

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [17 June 2021 10:28 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/39 "2021-06-17T10:28:56Z")

</div>

> [@Argus.Tuft](#):
>
> Available Volume ?

Het Neil,  
Thanks for proposing an alternative name for "emtyVolume"! But when I look at my oil tank for my heating systel, the filled volume is for me the 'available volume´. Because that oil is 'available' for heating...

---

<div class="post-metadata">

### Author: ![Argus.Tuft](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Argus.Tuft](https://discourse.nodered.org/u/Argus.Tuft)
#### Post date: [17 June 2021 11:50 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/40 "2021-06-17T11:50:31Z")

</div>

Yes Bart, you're quite right. The old glass half full or half empty conundrum.  
I'll rethink and try again.  
WTS  
Cheers

---

<div class="post-metadata">

### Author: ![thedrawling1](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/thedrawling1/32/42805_2.png) [@thedrawling1](https://discourse.nodered.org/u/thedrawling1)
#### Post date: [18 June 2021 19:29 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101/41 "2021-06-18T19:29:37Z")

</div>

Hello, I have used differential pressure sensors such as the MPX 5010DP to measure liquid depth, for instance in an underground rainwater reservoir or water butts in the garden.

[Previous page](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101.md?page=1)

[Next page](https://discourse.nodered.org/t/announce-node-red-contrib-tank-volume-beta/47101.md?page=3)
