# Make HC SR04 water resistant

**URL:** <https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955>\
**Category:** General Electronics\
**Created:** [August 20, 2014, 10:06am UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955 "2014-08-20T10:06:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arduino14](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@Arduino14](https://forum.arduino.cc/u/Arduino14)\
**Post date:** [August 20, 2014, 10:06am UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/1 "2014-08-20T10:06:21Z")

</div>

Hi,

I'm working on a project for measure the water level of my underground tank. I'm using HC SR04 ultrasonic sensor for the measurement, now I've think that inside the tank the humidity will be very high, so how can I make water proof the sensor? From what I understand the ultrasonic sensors can't be covered,someone has tried it? Thanks

---

<div class="post-metadata">

**Author:** ![billhowl](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/billhowl/32/213655_2.png) [@billhowl](https://forum.arduino.cc/u/billhowl)\
**Post date:** [August 20, 2014, 1:49pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/2 "2014-08-20T13:49:11Z")

</div>

Change to ultrasonic sensors to this type  
 ![](https://europe1.discourse-cdn.com/arduino/original/4X/d/8/0/d80b34a160a7428906fb39f355d3006cf1aad57b.jpeg)

> **[Ultrasonic Sensors](https://www.futurlec.com/Ultrasonic_Sensors.shtml)**
>
> Ultrasonic Sensors and Ultrasonic Transducers, Long Range Ultrasonic Sensor, Waterproof Ultrasonic Sensor

---

<div class="post-metadata">

**Author:** ![anon24222106](https://avatars.discourse-cdn.com/v4/letter/a/ba9def/32.png) [@anon24222106](https://forum.arduino.cc/u/anon24222106)\
**Post date:** [August 21, 2015, 4:46pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/3 "2015-08-21T16:46:10Z")

</div>

Hi, i am looking for a moisture resistant HCSR04 ultrasonic sensor to measure water level in a tank, did anyone solve this problem?? Which one of the Futurlec water resistant capsule are ok to change with the original one? US1440 model should be right..?  
Thanks for any help!!  
Marco

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [August 22, 2015, 4:08am UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/4 "2015-08-22T04:08:21Z")

</div>

> marcoblacks:  
> Hi, i am looking for a moisture resistant HCSR04 ultrasonic sensor to measure water level in a tank, did anyone solve this problem?? Which one of the Futurlec water resistant capsule are ok to change with the original one? US1440 model should be right..?  
> Thanks for any help!!  
> Marco

[http://forums.adafruit.com/viewtopic.php?f=8&p=121645](http://forums.adafruit.com/viewtopic.php?f=8&p=121645)  
Maby a parking sensor can be used. Or [this](http://www.aliexpress.com/item/J34-Free-Shipping-DC-5V-Ultrasonic-Module-Distance-Measuring-Transducer-Sensor-Perfect-Waterproof/32400424410.html).  
Leo..

---

<div class="post-metadata">

**Author:** ![pierbiag](https://avatars.discourse-cdn.com/v4/letter/p/34f0e0/32.png) [@pierbiag](https://forum.arduino.cc/u/pierbiag)\
**Post date:** [January 18, 2017, 3:15pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/5 "2017-01-18T15:15:12Z")

</div>

If you look at DIY methods, you should cover the two cans with a protective material with thickness=1/2 wavelength.  
Knowing that the frequency of the device is 40kHz, your solution would be a Plexiglas plate of 2.125cm

---

<div class="post-metadata">

**Author:** ![mastiff](https://avatars.discourse-cdn.com/v4/letter/m/ee7513/32.png) [@mastiff](https://forum.arduino.cc/u/mastiff)\
**Post date:** [May 2, 2018, 2:43pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/6 "2018-05-02T14:43:10Z")

</div>

Were you ever able to replace the transmitter and receivers with waterproof/resistant ones successfully?  
If so which ones did you use?

Doing similar project .. so same problem.

---

<div class="post-metadata">

**Author:** ![MarkT](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@MarkT](https://forum.arduino.cc/u/MarkT)\
**Post date:** [May 2, 2018, 4:00pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/7 "2018-05-02T16:00:54Z")

</div>

> pierbiag:  
> If you look at DIY methods, you should cover the two cans with a protective material with thickness=1/2 wavelength.  
> Knowing that the frequency of the device is 40kHz, your solution would be a Plexiglas plate of 2.125cm

Not going to work at all. You have no understanding of ultrasound in air.

[ the acoustic impedance of air and a solid is about 4 orders of magnitude different, any diaphragm  
must is very thin indeed to have low enough mass not to just 100% reflect ]

---

<div class="post-metadata">

**Author:** ![Bringamosa](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@Bringamosa](https://forum.arduino.cc/u/Bringamosa)\
**Post date:** [October 14, 2018, 3:31pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/8 "2018-10-14T15:31:03Z")

</div>

I habe a IBC tank outside with on top of that a terra cotta plants pot upside down and in the my sensor.

That works pretty good for about a year now

---

<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 14, 2018, 4:34pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/9 "2018-10-14T16:34:12Z")

</div>

> Bringamosa:  
> I habe a IBC tank outside with on top of that a terra cotta plants pot upside down and in the my sensor.
> 
> That works pretty good for about a year now

I also have a water tank with the sensor mounted on its top screw cover facing the water. It works for about a year before he connecrions get oxidised from the moisture and some wire gets disconnected. Then i have to replace it.

I now plan a similar approach to monitor water level in my pool reservoir balancing tank. In this case however the sensor might actually come in contact with water so waterproofing is needed.

---

<div class="post-metadata">

**Author:** ![Bringamosa](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@Bringamosa](https://forum.arduino.cc/u/Bringamosa)\
**Post date:** [October 14, 2018, 4:37pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/10 "2018-10-14T16:37:26Z")

</div>

I have the pot lifted up for about 2 cm for a bit of ventilation. But if it will come in contact with water i gues i just have to look for some more expensive waterproof modules

---

<div class="post-metadata">

**Author:** ![engineershahzaman](https://avatars.discourse-cdn.com/v4/letter/e/e480ec/32.png) [@engineershahzaman](https://forum.arduino.cc/u/engineershahzaman)\
**Post date:** [December 30, 2018, 2:35pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/11 "2018-12-30T14:35:57Z")

</div>

> Watcher:  
> Has anyone actually tried to just replace the two senors on the hc sr04 pcb with these waterproof ones?

Yes. I did. but they did not work. i could hear the vibrating sound on the sensor but the reading it was giving was not correct. This is probably due to that these sensors work on 12v . Anyhow , did you find any solution to that because humidity just kills this sensor.!

---

<div class="post-metadata">

**Author:** ![Bringamosa](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@Bringamosa](https://forum.arduino.cc/u/Bringamosa)\
**Post date:** [December 31, 2018, 10:08am UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/12 "2018-12-31T10:08:16Z")

</div>

Oops, after a couple of months of service also my ultrasonic device gave up on me. The little dish inside the speakers came loose and messed everything up.

Ordered a waterproof one now, works like a charm

---

<div class="post-metadata">

**Author:** ![acsreedharreddy](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@acsreedharreddy](https://forum.arduino.cc/u/acsreedharreddy)\
**Post date:** [July 17, 2019, 12:11pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/13 "2019-07-17T12:11:35Z")

</div>

> Bringamosa:  
> Oops, after a couple of months of service also my ultrasonic device gave up on me. The little dish inside the speakers came loose and messed everything up.
> 
> Ordered a waterproof one now, works like a charm

@Bringamosa how did you use waterproof sensor? Can you tell how you connected those waterproof sensor to a board and code?

---

<div class="post-metadata">

**Author:** ![Bringamosa](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@Bringamosa](https://forum.arduino.cc/u/Bringamosa)\
**Post date:** [July 17, 2019, 12:16pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/14 "2019-07-17T12:16:10Z")

</div>

I used the example code

---

<div class="post-metadata">

**Author:** ![acsreedharreddy](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@acsreedharreddy](https://forum.arduino.cc/u/acsreedharreddy)\
**Post date:** [July 17, 2019, 12:19pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/15 "2019-07-17T12:19:54Z")

</div>

> Bringamosa:  
> I used the example code

With HCSR04 we have board for sensor. How did you make board for waterproof sensor? Did you use JSNSR04 2.0 or made your own board with waterproof sensors?

---

<div class="post-metadata">

**Author:** ![Bringamosa](https://avatars.discourse-cdn.com/v4/letter/b/e47c2d/32.png) [@Bringamosa](https://forum.arduino.cc/u/Bringamosa)\
**Post date:** [July 17, 2019, 12:57pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/16 "2019-07-17T12:57:44Z")

</div>

You quoted me, "Ordered a waterproof one now, works like a charm" the HCSR04 is not waterproof. The JSNR04 is waterproof, worked for a while but but also had bad readings so I want just for hall effect switchs for my water levels

---

<div class="post-metadata">

**Author:** ![acsreedharreddy](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@acsreedharreddy](https://forum.arduino.cc/u/acsreedharreddy)\
**Post date:** [July 17, 2019, 1:04pm UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/17 "2019-07-17T13:04:48Z")

</div>

> Bringamosa:  
> You quoted me, "Ordered a waterproof one now, works like a charm" the HCSR04 is not waterproof. The JSNR04 is waterproof, worked for a while but but also had bad readings so I want just for hall effect switchs for my water levels

I thought you bought waterproof transducers and worked on that. Even I bought waterproof JSN but it works fine only when powered with 5v directly, when powered with 12-\>Buckconverter-\>5v it does not give consistent readings.

Do you have any idea of how to use waterproof transducers?

---

<div class="post-metadata">

**Author:** ![nebja](https://avatars.discourse-cdn.com/v4/letter/n/7bcc69/32.png) [@nebja](https://forum.arduino.cc/u/nebja)\
**Post date:** [August 16, 2019, 9:52am UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/18 "2019-08-16T09:52:17Z")

</div>

Same inconsistent readings problem for JSN SR04T. I think there is inherent issue with JSN SR04T as per this video ([Don't buy JSN-SR04T-2.0 ultrasonic distance sensor module - YouTube](https://www.youtube.com/watch?v=N42Y-QOqwtA)). I gave up on JSN SR04T and chose [this other better sensor instead](https://www.ebay.com/itm/253978673298)

---

<div class="post-metadata">

**Author:** ![Fusseldieb](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@Fusseldieb](https://forum.arduino.cc/u/Fusseldieb)\
**Post date:** [January 29, 2020, 11:30am UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/19 "2020-01-29T11:30:18Z")

</div>

The AliExpress link for the sensor above:

[https://pt.aliexpress.com/item/4000312560051.html?spm=a2g0o.productlist.0.0.11602d3aRnQa0a&algo\_pvid=23074bbd-3d7a-4cf7-bf0e-604f300a43ca&algo\_expid=23074bbd-3d7a-4cf7-bf0e-604f300a43ca-23&btsid=6c4d4106-542a-42c8-8427-6506cb53fc82&ws\_ab\_test=searchweb0\_0,searchweb201602\_7,searchweb201603\_53](https://pt.aliexpress.com/item/4000312560051.html?spm=a2g0o.productlist.0.0.11602d3aRnQa0a&algo_pvid=23074bbd-3d7a-4cf7-bf0e-604f300a43ca&algo_expid=23074bbd-3d7a-4cf7-bf0e-604f300a43ca-23&btsid=6c4d4106-542a-42c8-8427-6506cb53fc82&ws_ab_test=searchweb0_0,searchweb201602_7,searchweb201603_53)

I'll buy one and report back.

I had multiple JSN-SR04T and all of them had an issue with my water tank: They reported the right value, until the water levels dropped far enough and then only measured 20cm. I don't know if it bouned back off the walls or what it was, but nah. The tank isn't even that big. Maybe 1m in height.

---

<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, 1:36am UTC](https://forum.arduino.cc/t/make-hc-sr04-water-resistant/252955/20 "2021-05-06T01:36:08Z")

</div>

Closed on May 6, 2021, 1:36am UTC


