ESP32 JSN-SR04T Waterproof Ultrasonic Distance Sensor

JSN-SR04T Waterproof Ultrasonic Distance Sensor image

JSN-SR04T

Protocol: Trigger/Echo

Overview

The JSN-SR04T is a waterproof ultrasonic distance sensor ideal for outdoor and industrial applications. With a measuring range of up to 6 meters and a durable build, it is perfect for detecting objects in harsh conditions. It operates using Trigger and Echo signals and is compatible with microcontrollers like Arduino and ESP32.

About JSN-SR04T Waterproof Ultrasonic Distance Sensor

The JSN-SR04T is a waterproof ultrasonic sensor designed for long-range distance measurement in outdoor and industrial environments. With a measurement range of 25 cm to 600 cm, it is ideal for liquid level sensing, parking sensors, and proximity detection.

Key Features

  • Extended Measurement Range – Detects distances from 25 cm to 600 cm.
  • Waterproof & Dustproof Design – Ideal for harsh outdoor conditions.
  • Trigger & Echo Mechanism – Operates similarly to the HC-SR04 for easy integration.
  • ESP32 & Arduino Compatible – Works seamlessly with microcontrollers for automation projects.

With its rugged build and reliable performance, the JSN-SR04T is perfect for applications requiring water-resistant distance sensing. 🚀

Where to Buy

JSN-SR04T Waterproof Ultrasonic Distance Sensor

Starting from

5$ per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Measurement Range 25 cm to 600 cm
Resolution 0.5 cm
Accuracy ±1 cm
Operating Voltage 5V DC
Trigger Pulse Duration 10 µs
Interface Trigger/Echo

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

The JSN-SR04T pinout is as follows:

  • VCC: Connect to a 5V power supply.
  • GND: Ground connection.
  • Trigger (TRIG): Input pin to initiate distance measurement by sending a short 10 µs pulse.
  • Echo: Output pin that provides a pulse width corresponding to the measured distance.

Wiring with ESP32

To use the JSN-SR04T with a microcontroller like an ESP32 or Arduino, connect VCC to a 5V power source, GND to ground, and the Trigger and Echo pins to two GPIO pins on the microcontroller. Ensure proper resistors or level shifters are used if interfacing with 3.3V logic devices.

Troubleshooting Guide

Common Issues

⚠️ Sensor Returns Constant or Erroneous Readings

🔄 Inconsistent or Fluctuating Distance Measurements

❌ Sensor Not Detected or Unresponsive

🌍 Interference from Environmental Factors

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 JSN-SR04T Waterproof Ultrasonic Distance Sensor is a powerful distance sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.