LD2420 Human Presence Sensor

LD2420 Human Presence Sensor image

View on Amazon

Overview

The LD2420 is a mmWave radar sensor for motion, micro-motion, and presence detection. It supports UART communication and GPIO output, and integrates easily with ESPHome and Arduino platforms.

About LD2420 Human Presence Sensor

The LD2420 is a high-performance 24GHz mmWave radar sensor designed for human presence detection, capable of sensing motion, micro-motion, and stationary targets within a range of up to 8 meters. It features UART and GPIO outputs, operates at 3.3V, and is suitable for a wide range of smart home and automation applications. The sensor supports flexible configuration options via UART and is compatible with ESPHome and Arduino environments. For firmware versions below 1.5.3, the baud rate is 256000; for newer firmware, it's 115200. No MicroPython or ESP-IDF libraries are available yet.

Where to Buy

Get Your LD2420

LD2420 Human Presence Sensor

Starting from

$8 per unit

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

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

Technical Specs

LD2420 Specifications

Complete technical specification details for LD2420 Human Presence Sensor

📊 Technical Parameters

Interface UART (115200 or 256000 baud)
Detection Range 0.3–8 meters
Detection Field ±60°
Power Supply 3.3V DC
Output UART, GPIO
Resolution Configurable gate zones
Operating Temperature -20°C to +85°C
Dimensions 20mm × 20mm
Pin Spacing 2.54mm
Pin Configuration

LD2420 Pinout

The **LD2420** is a 5-pin 24GHz mmWave radar with firmware-dependent baud rate:

Visual Pinout Diagram

Pinout Diagram Primary
LD2420 Human Presence Sensor pinout
5
Total Pins

Pin Types

Power
2
Communication
3

Quick Tips

🔌

**Interface**: UART (baud depends on firmware version),📡 **Technology**: 24GHz FMCW radar,👤 **Detection**: Motion, micro-motion, and stationary presence,📏 **Range**: 0.3 to 8 meters

🎚️

**Gates**: Configurable distance gates for zone-based detection,⚡ **Power**: 3.3V ONLY (not 5V tolerant),📊 **Baud Rate**: 256000 (firmware <1.5.3) or 115200 (firmware ≥1.5.3)

⚠️

**Firmware**: Check firmware version to determine correct baud rate,💡 **OUT Logic**: 3.3V compatible, safe for ESP32 GPIO,🎯 **Applications**: Smart lighting, occupancy sensing, automation systems

Pin Descriptions

Pin NameTypeDescriptionNotes
1 VCC
Power

Power input

3.3V DC only (not 5V tolerant)

2 GND
Power

Ground connection

3 TX
Communication

UART transmit

Sends data from sensor (connect to ESP32 RX)

4 RX
Communication

UART receive

Receives commands (connect to ESP32 TX)

5 OUT
Communication

Digital presence output

3.3V HIGH when presence detected (optional)

Connection Guide

Wiring LD2420 to ESP32

To interface the **LD2420** with an **ESP32** for presence detection via UART:

Visual Wiring Diagram

Wiring Diagram Recommended
LD2420 Human Presence Sensor wiring with ESP32
5
Connections

Connection Status

Required
4
Optional
1

Protocol

UART

Pin Connections

LD2420 PinConnectionESP32 PinDescription
1 VCC Required
3.3V

Power supply (3.3V only)

2 GND Required
GND

Ground

3 TX Required
GPIO16 (RX2)

Sensor transmit to ESP32 receive

4 RX Required
GPIO17 (TX2)

Sensor receive from ESP32 transmit

5 OUT Optional
GPIO18

Digital presence output (optional)

💡

**UART2**: Use UART2 on ESP32 (GPIO16/17 are default UART2 pins)

📊

**Baud Rate**: 256000 (firmware <1.5.3) or 115200 (≥1.5.3) - check firmware version

**Power**: 3.3V ONLY - do NOT connect to 5V (will damage sensor)

🔄

**TX/RX**: Connect sensor TX to ESP32 RX, sensor RX to ESP32 TX

📡

**OUT Pin**: 3.3V logic level, safe for direct ESP32 GPIO connection

⚠️

**Firmware Check**: Verify firmware version to set correct baud rate

🎚️

**Configuration**: Use UART commands or ESPHome for gate configuration

📏

**Distance Gates**: Configurable for precise zone-based detection

Help & Support

LD2420 Troubleshooting

Common issues and solutions to help you get your sensor working

Common Issues

Debugging Tips

Code Examples

LD2420 Programming Examples

Ready-to-use code examples for different platforms and frameworks

Summary

Wrapping Up LD2420

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

Best Practices

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

Safety First

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

Ready to Start Building?

Now that you have all the information you need, it's time to integrate the LD2420 into your ESP32 project and bring your ideas to life!