Measuring Distance in Wet Environments with JSN-SR04T

Measuring Distance in Wet Environments with JSN-SR04T

The JSN-SR04T works on the same echo-timing principle as the HC-SR04 we've used many times before, but with one key difference built right into its design: a waterproof sensor probe sealed on the end of a cable, meant for exactly the wet or outdoor conditions a regular HC-SR04 can't survive.

Only the cabled transducer is intended for wet exposure; the controller PCB, connectors, and cable entry still need a dry enclosure. Range and blind zone vary by hardware revision.

How it works

Like standard ultrasonic sensors, the JSN-SR04T emits a 40kHz ultrasonic pulse and measures how long it takes for the echo to bounce back off a nearby object, converting that time delay into a distance. What sets it apart physically is that its transducer sits inside a sealed, waterproof probe connected to the driver board by a length of cable — letting the sensing element itself be mounted somewhere exposed to moisture while the electronics stay protected.

Components needed

An Arduino Uno, a JSN-SR04T waterproof ultrasonic sensor module, and jumper wires.

Wiring it up

The module runs on 5V with its Trig pin connected to digital pin 2 and Echo to digital pin 3 — the same four-wire pattern as a standard HC-SR04.

Reading the distance

The sketch triggers a pulse and uses pulseIn() to measure how long the Echo pin stays HIGH, then converts that duration into distance using the speed of sound (roughly 34,300 cm/s), dividing by two to account for the round trip — identical math to a regular HC-SR04 setup.

Where this is used

Its waterproof probe makes the JSN-SR04T the right choice for outdoor obstacle-avoidance robots, tank or reservoir liquid-level measurement, and any distance-sensing project exposed to rain, humidity, or splashing water where a standard HC-SR04 would fail.

You can find JSN-SR04T waterproof ultrasonic sensor modules at Juthour Tech.

اترك تعليقا

*
*
يمكن للأعضاء المسجلين فقط ترك تعليقات.