ESP32 LD2410B Human Presence Sensor

LD2410B Human Presence Sensor image

LD2410B

Protocol: UART,Bluetooth

Overview

The LD2410B is a millimeter-wave radar sensor for human presence detection with enhanced Bluetooth-based configuration support. It maintains UART communication while offering wireless setup and tuning via BLE.

About LD2410B Human Presence Sensor

The LD2410B is an upgraded version of the popular LD2410 millimeter-wave radar sensor. It includes all the presence detection features of the original model—such as stationary and moving human detection using 24GHz radar technology—while adding integrated Bluetooth Low Energy (BLE) for wireless configuration. This eliminates the need for wired UART access during setup, simplifying installation and tuning. Like its predecessor, the LD2410B is ideal for smart home applications such as lighting automation, security, and HVAC systems. Learn more about the original sensor at LD2410.

Where to Buy

LD2410B Human Presence Sensor

Starting from

$12 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), Bluetooth LE
Detection Range Up to 6 meters
Detection Field ±60°
Power Supply 5V DC
Output UART, GPIO, BLE
Resolution 0.2m or 0.75m gate intervals
Operating Temperature -20°C to +85°C
Dimensions 35mm × 7mm
Wireless Setup Bluetooth Configuration App

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 LD2410B module shares the same fundamental pinout as the original LD2410, with the addition of integrated Bluetooth Low Energy (BLE) functionality for wireless configuration and diagnostics. The primary interface remains UART, with clearly defined pins for power, communication, and optional logic output:

  • VCC – Power input pin. Connect to a regulated 5V source. Supplying correct voltage is essential for stable radar operation.
  • GND – Ground pin. This must be tied to the common ground of the ESP32 or any other host controller for proper data signaling.
  • TX – UART transmit line. This pin sends serial data from the LD2410B to the ESP32 (connect to ESP32 RX).
  • RX – UART receive line. Used to receive serial commands from the host (connect to ESP32 TX).
  • OUT – An optional GPIO output that goes HIGH when presence is detected. Can be used to trigger hardware interrupts or simple presence-based logic without using UART.

Note: While BLE is internally supported, it does not require external pin access and functions independently once configured.

Wiring with ESP32

To wire the LD2410B to an ESP32 for UART-based presence sensing and configuration, follow these connection steps. Ensure you are using UART2 (or another free UART interface) on the ESP32, and use level-shifting components if your board is not 5V tolerant (though most ESP32s are compatible):

  • VCC (red wire) → 5V pin on ESP32. Provides power to the sensor. Required even when using BLE.
  • GND (black wire) → GND on ESP32. Must be connected to the common ground for stable communication.
  • TX (green wire) → GPIO16 on ESP32. This is the receive pin (RX) on the microcontroller side.
  • RX (blue wire) → GPIO17 on ESP32. This is the transmit pin (TX) on the microcontroller side.
  • OUT (optional, yellow wire) → GPIO18 if you plan to use presence-triggered interrupts or visual indicators (like LEDs).

While BLE can be used to configure the LD2410B without these connections, a full UART setup is recommended for real-time presence sensing in embedded environments. BLE and UART cannot be used simultaneously on most firmware versions, so use BLE for setup, then switch to UART for continuous operation.

Troubleshooting Guide

Common Issues

📶 Bluetooth Not Detected

🚫 No Data Over UART

⚠️ Detection Delay

🔌 Cannot Access Configuration

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 LD2410B 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.