# Making HC-SR04 waterproof

**URL:** <https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643>\
**Category:** Sensors\
**Created:** [September 23, 2015, 8:18pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643 "2015-09-23T20:18:10Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![manisha20](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@manisha20](https://forum.arduino.cc/u/manisha20)\
**Post date:** [September 23, 2015, 8:18pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/1 "2015-09-23T20:18:10Z")

</div>

Hi guys I am using HC-SR04 to detect water level inside a water bottle.  
I need to make it water proof so that the sensor doesn't gets corrupted by water.

I tried to use a polythene, by covering both the transmitter and receiver with it separately, but that is not working.I get wrong and extremely fluctuating readings with that. I think the reason is that a lot of noise gets absorbed and also the plastic keeps vibrating because of air around.

Then I tried using a food plastic wrap, which is very much thinner than polythene's material. This is working better, it gives a stable result at least. But for short distances, it gives two values, for eg. one reading will be about 400 and right after that, it will give something around 20,000. And this pair of results keep repeating for same distance.

What would be a good way to water-proof it?  
The waterproof ultrasonic sensors available in the market are very expensive, hence I am more interested in modifying this one if possible.

Thanks

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [September 24, 2015, 12:08am UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/2 "2015-09-24T00:08:07Z")

</div>

Waterproof ultrasonic sensors are expensive for a reason.

You aren't likely to have much luck with your own waterproofing experiments, because that will interfere with both the transmitter and receiver, which are designed to function in dry air.

A better way to measure water level is to measure the pressure at the bottom of the container. It is proportional to the height of the water column.

---

<div class="post-metadata">

**Author:** ![guntherb](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/guntherb/32/215276_2.png) [@guntherb](https://forum.arduino.cc/u/guntherb)\
**Post date:** [September 24, 2015, 8:16am UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/3 "2015-09-24T08:16:01Z")

</div>

Do you really need a waterproof sensor?

I am also using a HC-SR04 for detecting Water level inside a box.  
Sensor is mounted at the top, but without direct water contact, so it does see only the humidity.

This system is working since 10 Months without any issues. (exept the 25µs dither described above)

---

<div class="post-metadata">

**Author:** ![manisha20](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@manisha20](https://forum.arduino.cc/u/manisha20)\
**Post date:** [September 26, 2015, 2:18pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/4 "2015-09-26T14:18:56Z")

</div>

> guntherb:  
> Do you really need a waterproof sensor?
> 
> I am also using a HC-SR04 for detecting Water level inside a box.  
> Sensor is mounted at the top, but without direct water contact, so it does see only the humidity.
> 
> This system is working since 10 Months without any issues. (exept the 25µs dither described above)

I think I do need a water-proof one, since I plan to fix the sensor at the cap of the bottle, and if a user will tilt the bottle, then water can go inside the transducer and circuit.

---

<div class="post-metadata">

**Author:** ![manisha20](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@manisha20](https://forum.arduino.cc/u/manisha20)\
**Post date:** [September 26, 2015, 6:49pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/5 "2015-09-26T18:49:58Z")

</div>

> jremington:  
> Waterproof ultrasonic sensors are expensive for a reason.
> 
> You aren't likely to have much luck with your own waterproofing experiments, because that will interfere with both the transmitter and receiver, which are designed to function in dry air.
> 
> A better way to measure water level is to measure the pressure at the bottom of the container. It is proportional to the height of the water column.

I tried measuring the pressure at the bottom using a FSR. That is not giving very accurate readings. All load cells are pretty costly. Can you suggest a cheap option for measuring pressure.

---

<div class="post-metadata">

**Author:** ![Boardburner2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/boardburner2/32/1126624_2.png) [@Boardburner2](https://forum.arduino.cc/u/Boardburner2)\
**Post date:** [September 26, 2015, 6:52pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/6 "2015-09-26T18:52:46Z")

</div>

can you put parellel wires down to the bottom ,

Measure the capacitance between them.

---

<div class="post-metadata">

**Author:** ![manisha20](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@manisha20](https://forum.arduino.cc/u/manisha20)\
**Post date:** [September 29, 2015, 11:41am UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/7 "2015-09-29T11:41:28Z")

</div>

> Boardburner2:  
> can you put parellel wires down to the bottom ,
> 
> Measure the capacitance between them.

I am avoiding any contact with the water, since I want to measure for potable water.  
Wont the presence of the wires inside the water harm it?

---

<div class="post-metadata">

**Author:** ![Boardburner2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/boardburner2/32/1126624_2.png) [@Boardburner2](https://forum.arduino.cc/u/Boardburner2)\
**Post date:** [September 29, 2015, 1:50pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/8 "2015-09-29T13:50:51Z")

</div>

you can use carbon fibre rods.

You do not need to pass current through the water just measure capacitance

---

<div class="post-metadata">

**Author:** ![manisha20](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@manisha20](https://forum.arduino.cc/u/manisha20)\
**Post date:** [September 30, 2015, 9:20am UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/9 "2015-09-30T09:20:41Z")

</div>

> Boardburner2:  
> you can use carbon fibre rods.
> 
> You do not need to pass current through the water just measure capacitance

Thank you so much for replying.

Excuse me for not having much information about this method. I have two doubts:

1. Is Carbon Fibre food safe?
2. For the method, what I understand is that the two wires will be connected to a battery. Can this result in ioninsing the water?

---

<div class="post-metadata">

**Author:** ![Boardburner2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/boardburner2/32/1126624_2.png) [@Boardburner2](https://forum.arduino.cc/u/Boardburner2)\
**Post date:** [September 30, 2015, 12:09pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/10 "2015-09-30T12:09:35Z")

</div>

> manisha20:  
> Thank you so much for replying.
> 
> Excuse me for not having much information about this method. I have two doubts:
> 
> 1. Is Carbon Fibre food safe?
> 2. For the method, what I understand is that the two wires will be connected to a battery. Can this result in ioninsing the water?

---

<div class="post-metadata">

**Author:** ![Boardburner2](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/boardburner2/32/1126624_2.png) [@Boardburner2](https://forum.arduino.cc/u/Boardburner2)\
**Post date:** [September 30, 2015, 12:12pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/11 "2015-09-30T12:12:29Z")

</div>

food safe i do not know.

this is

> **[12" Chemical eTape Liquid Level Sensor with Teflon Jacket](https://www.adafruit.com/product/1786)**
>
> The Chemical eTape Liquid Level Sensor is a solid-state sensor with a resistive output that varies with the level of the fluid. It does away with clunky mechanical floats, and easily ...

Thats resistive but for capacitance insulated wire can work with no direct contact with the water.

Just a case of finding a food safe insulator.

Anything commercial is likely to be expensive.

---

<div class="post-metadata">

**Author:** ![bocse](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@bocse](https://forum.arduino.cc/u/bocse)\
**Post date:** [October 23, 2019, 2:37pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/12 "2019-10-23T14:37:03Z")

</div>

Cheaper and longer lengths of eTape liquid level sensors

> **[eTape liquid level sensor – Whitebox Labs](https://www.whiteboxes.ch/shop/etape/)**

> **[Standard eTape® assembly](https://milonetech.com/products/standard-etape-assembly)**
>
> Price: USD 49.99

---

<div class="post-metadata">

**Author:** ![enjoyneering](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/enjoyneering/32/240058_2.png) [@enjoyneering](https://forum.arduino.cc/u/enjoyneering)\
**Post date:** [October 29, 2019, 1:38pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/13 "2019-10-29T13:38:56Z")

</div>

lifehack

 ![HC-SR04_water_resistance.jpg](https://europe1.discourse-cdn.com/arduino/original/4X/b/c/9/bc98f5c44f7d0d72ddf941d29d65414570db977b.jpeg)

---

<div class="post-metadata">

**Author:** ![Watcher](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/watcher/32/216151_2.png) [@Watcher](https://forum.arduino.cc/u/Watcher)\
**Post date:** [October 29, 2019, 3:27pm UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/14 "2019-10-29T15:27:40Z")

</div>

Doesn't that cling film affect the sensor operation and accuracy?

---

<div class="post-metadata">

**Author:** ![bocse](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@bocse](https://forum.arduino.cc/u/bocse)\
**Post date:** [October 31, 2019, 12:32am UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/15 "2019-10-31T00:32:05Z")

</div>

Yeah I think it does affect accuracy and proper operation. HC SR04 is inherently NOT a waterproof sensor.

There are specific waterproof sensors for this purpose.

JSN SR04T being one but it has only 1 transducer/sensor and therefore has a minimum blind distance of 20cm.

[There is this another sensor which has 2 transducers/sensors helping us get minimum distance of 3cm and is also IP67 rated](http://www.ebay.com/itm/253978673298)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 6, 2021, 10:10am UTC](https://forum.arduino.cc/t/making-hc-sr04-waterproof/336643/16 "2021-05-06T10:10:40Z")

</div>

Closed on May 6, 2021, 10:10am UTC


