

The JSN-SR04T is a waterproof ultrasonic sensor designed to measure distances or detect objects using ultrasonic waves. It is specifically engineered to operate in wet or harsh environments, making it ideal for outdoor applications or areas exposed to moisture. The sensor emits ultrasonic sound waves and calculates the distance to an object by measuring the time it takes for the echo to return. Its waterproof design ensures reliable performance in challenging conditions.








The JSN-SR04T is a robust and versatile sensor with the following key specifications:
| Parameter | Value |
|---|---|
| Operating Voltage | 5V DC |
| Operating Current | 30 mA |
| Measuring Range | 20 cm to 600 cm (0.2 m to 6 m) |
| Accuracy | ±1 cm |
| Operating Frequency | 40 kHz |
| Waterproof Rating | IP67 |
| Operating Temperature | -20°C to 70°C |
| Trigger Input Signal | 10 µs TTL pulse |
| Echo Output Signal | TTL pulse, proportional to distance |
The JSN-SR04T has a 4-pin interface for easy integration into circuits:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (5V DC) |
| 2 | Trig | Trigger pin: Sends a 10 µs pulse to initiate distance measurement |
| 3 | Echo | Echo pin: Outputs a pulse width proportional to the measured distance |
| 4 | GND | Ground connection |
Below is an example of how to use the JSN-SR04T with an Arduino UNO:
// Define pins for the JSN-SR04T sensor
const int trigPin = 9; // Trigger pin connected to digital pin 9
const int echoPin = 10; // Echo pin connected to digital pin 10
void setup() {
// Initialize serial communication for debugging
Serial.begin(9600);
// Set pin modes for the sensor
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
}
void loop() {
// Send a 10 µs HIGH pulse to the Trig pin
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
// Measure the duration of the HIGH pulse on the Echo pin
long duration = pulseIn(echoPin, HIGH);
// Calculate the distance in cm
float distance = (duration * 0.034) / 2;
// Print the distance to the Serial Monitor
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");
// Wait before taking the next measurement
delay(500);
}
No Output or Incorrect Readings
Unstable Distance Measurements
Sensor Not Responding
Short Measuring Range
Q: Can the JSN-SR04T be used underwater?
A: No, the sensor is waterproof but not designed for underwater use. It is suitable for wet environments but must remain above water.
Q: What is the maximum range of the sensor?
A: The JSN-SR04T can measure distances up to 600 cm (6 meters) with an accuracy of ±1 cm.
Q: Can I use the JSN-SR04T with a 3.3V microcontroller?
A: The sensor requires a 5V power supply. If using a 3.3V microcontroller, a level shifter is recommended for the Trig and Echo pins.
Q: How do I protect the sensor in outdoor installations?
A: Ensure the sensor is mounted in a way that prevents water pooling around the connections and use a weatherproof enclosure for additional protection.