sheen.bot logo

Insights

Can You Use Cheap Ultrasonic Sensors to Monitor JoJo Tanks, or Do They Rust?

18 Aug 2026·Sheen Robotics
Can You Use Cheap Ultrasonic Sensors to Monitor JoJo Tanks, or Do They Rust?

Standard HC-SR04 sensors fail within weeks inside a sealed water tank due to condensation and unsealed piezo meshes. Here is why they corrode and what hardware actually survives.

The short answer is no: standard, open-face HC-SR04 ultrasonic modules will not survive inside a JoJo tank. While the sensor body is aluminium, the fine mesh grilles, the exposed piezoceramic disc contacts, and the unvarnished PCB traces corrode rapidly under constant 100% relative humidity. In high-temperature summer conditions, condensation turns the open receiver and transmitter cans into tiny moisture traps within three to six weeks.

To reliably monitor water levels in polyethylene tanks without regular hardware replacements, you need either a sealed waterproof ultrasonic transducer mounted with a standoff collar or a submersible hydrostatic pressure sensor dropped to the bottom.

Why Open HC-SR04 Sensors Fail in Water Tanks

An HC-SR04 sensor costs around R35 to R60, making it the default choice for classroom demonstrations and breadboard prototypes. However, a closed JoJo tank is a harsh microclimate:

  • Condensation cycles: During sunny South African afternoons, the air in the tank headspace warms up and absorbs moisture from the water surface. At night, temperatures drop, and water condenses directly onto the internal walls, the lid, and any electronics mounted beneath it.
  • Unsealed transducer cans: The silver cylinders on an HC-SR04 are open-air speaker and microphone pairs. Moisture enters through the front mesh, pools on the piezoelectric crystal, dampens the mechanical oscillation, and causes false readings (often reporting 0 cm or infinite distance) long before electrical failure.
  • Galvanic and atmospheric corrosion: The solder joints on the back of the transducer pins and the copper traces on the unpotted PCB oxidise quickly, developing copper carbonate and tin oxide crusts that bridge pins and short out the 5V rail.

Conformal coating or hot glue on the back of the board cannot fix this, because the point of failure is inside the acoustic cavity of the open transducers themselves.

The Working Alternatives: Ultrasonic vs Hydrostatic

For outdoor, long-term monitoring, two primary sensor categories survive year-round field conditions:

Sensor TypeApproximate Component Cost (ZAR)ProsCons & Failure Modes
Waterproof Ultrasonic (JSN-SR04T / AJ-SR04M)R120 – R250Non-contact; completely sealed aluminium transducer probe; separate electronics board housed outside the tank.Blind zone of 20–25 cm; false echoes if mounted too close to internal tank ribs or walls.
Submersible Hydrostatic Pressure ProbeR450 – R1,200No blind zone; immune to surface foam and tank condensation; measures actual head pressure.Direct water contact; requires vented cable; outputs 4–20 mA or 0–5 V requiring analog conditioning.

Setup 1: Waterproof Ultrasonic (JSN-SR04T) Best Practices

The JSN-SR04T splits the system into two parts: a waterproof, sealed cylindrical transducer on a 2.5-metre cable and an unsealed processing board. To make this setup last years rather than months, follow these mounting rules:

1. Account for the 25 cm Blind Zone

Unlike open-air modules that can read objects down to 2 cm, single-transducer waterproof ultrasonic sensors share the same piezo element for transmitting and receiving. The element must stop ringing before it can listen for an echo, creating a minimum blind zone of roughly 20 to 25 cm. If your tank is full and the water level sits 10 cm below the sensor, the sensor will return garbage data.

The fix: Mount the sensor inside an external PVC pipe collar (a 50 mm PVC riser tube) extending 20 cm above the tank lid. This ensures that even when the tank reaches 100% capacity, the water surface remains outside the blind zone.

2. Keep the Board in an IP65 Enclosure Outside

Never mount the processing PCB inside the tank cavity. Route the transducer cable through a compression cable gland on the side of the tank lid, and house your ESP32 or microcontroller and the JSN-SR04T carrier board in an external weatherproof junction box mounted on a shaded wall or the side of the tank stand.

Setup 2: Submersible Hydrostatic Pressure Sensors

If your tank roof has limited clearance or you want zero maintenance from acoustic reflection issues, a hydrostatic pressure transducer is the professional standard. These sensors sit on the floor of the tank and measure the static pressure exerted by the column of water above them.

Because water pressure increases by approximately 9.81 kPa per metre of depth (roughly 0.098 bar/m), a sensor rated for 0–20 kPa is ideal for a standard 2-metre-tall, 5,000-litre JoJo tank.

  • Vented cable care: Hydrostatic sensors use a tiny internal capillary tube inside the main cable to balance atmospheric pressure changes. Ensure the dry end of this cable terminates in an enclosure with a desiccant pack or a breathable, water-repellent Gore-Tex vent. If this vent gets plugged or submerged, accuracy drifts immediately.
  • Microcontroller interfacing: Most low-cost industrial pressure probes output 4–20 mA current loops or 0.5–4.5 V signals. For an ESP32, use a precision 150 Ω or 250 Ω resistor or an I2C ADC (like the ADS1115) to read the signal cleanly, as the native ESP32 analog-to-digital converter is notoriously non-linear below 0.15 V and above 2.45 V.

Which Should You Pick?

If you are building a school IoT demonstration, a garden tank monitor, or a farm dashboard on a budget, the JSN-SR04T mounted on a PVC riser provides the best balance of cost, ease of coding, and reliability. If you are deploying automated pump control in a production environment where false readings could run a borehole pump dry, invest in a hydrostatic pressure sensor.

For turnkey telemetry designs, power-budgeting for solar-and-battery nodes, and livestock water monitoring setups, explore the reference hardware and guides at Sheen Solutions for Farming or browse modular telemetry boards at Sheen IoT.

#iot#esp32#hardware#sensors#water-management

More Insights