ESP32 LD2410 Human Presence Sensor

LD2410 Human Presence Sensor image

LD2410

Protocol: UART

Overview

The LD2410 is a millimeter-wave radar sensor for human presence detection, supporting both stationary and moving target detection. It uses UART communication and is ideal for smart home automation systems.

About LD2410 Human Presence Sensor

The LD2410 is a 24GHz millimeter-wave radar sensor designed for detecting human presence, capable of identifying both stationary and moving targets. Unlike traditional PIR sensors, the LD2410 can detect micro-movements such as breathing, making it ideal for smart lighting, HVAC control, and security systems. It provides precise zone-based detection with configurable distance gates and supports UART communication for integration with ESP32 or Home Assistant via ESPHome.

Where to Buy

LD2410 Human Presence Sensor

Starting from

$10 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

Interface UART (256000 baud)
Detection Range Up to 5 meters
Detection Field ±60°
Power Supply 5V DC
Output UART, Optional GPIO
Resolution 0.2m or 0.75m gate intervals
Operating Temperature -20°C to +85°C
Dimensions 35mm × 7mm
Pin Width 1.27mm

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 LD2410 module features a set of pins that facilitate power supply, communication, and signal output:

  • VCC – Power input pin; connect to a stable 5V source.
  • GND – Ground pin; must be connected to the system ground.
  • TX – UART transmit pin; sends data from the LD2410 to an external device. Connect to the RX pin on the ESP32.
  • RX – UART receive pin; receives data from an external device. Connect to the TX pin on the ESP32.
  • OUT – Optional digital output; goes high when presence is detected. Can be used to trigger logic events without UART.

Wiring with ESP32

The following wiring diagram shows how to connect the LD2410 radar presence sensor to an ESP32 board via UART:

  • VCC (red wire) → 5V on ESP32
  • GND (black wire) → GND on ESP32
  • TX (green wire) → GPIO16 (RX on ESP32)
  • RX (blue wire) → GPIO17 (TX on ESP32)
  • OUT (optional, yellow wire) → GPIO18 (if using presence interrupt)

Ensure UART2 is used on the ESP32 and that all connections are secure to avoid communication issues.

Troubleshooting Guide

Common Issues

🚫 No Data Received

❌ Presence Not Detected

⚠️ Intermittent Detection

🔌 UART Initialization Fails

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 LD2410 Human Presence Sensor is a powerful Human Presence 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.