The LD2410C needs a bridge to talk to Home Assistant on its own

No, the LD2410C cannot connect directly to Home Assistant by itself. The sensor is a presence detection device that measures movement and stationary objects using millimeter-wave radar. It outputs data through a serial connection (UART), which Home Assistant cannot read without an intermediary device.

You need a bridge — usually a microcontroller like an ESP32 or Arduino — to sit between the LD2410C and Home Assistant. The microcontroller reads the sensor's serial data and sends it to Home Assistant over your home network using a protocol like MQTT or HTTP. Without this bridge, the sensor has no way to communicate with Home Assistant at all.

Key Takeaways

  • The LD2410C outputs data only through a serial UART connection, which Home Assistant cannot read directly.
  • An ESP32 or Arduino microcontroller acts as the bridge, reading the sensor and forwarding data to Home Assistant.
  • MQTT is the most common protocol for sending sensor data from the microcontroller to Home Assistant.
  • Pre-built firmware like ESPHome can handle the bridge setup without requiring you to write code from scratch.

What the LD2410C actually outputs

The LD2410C communicates through a serial UART interface at 115200 baud. It sends binary data packets containing presence detection, distance to the nearest object, and motion intensity. Home Assistant has no built-in serial port reader for this specific sensor — it cannot open a serial connection and parse the LD2410C's binary protocol on its own.

The sensor also has an I2C interface on some versions, but Home Assistant still cannot connect to I2C devices directly. You need hardware attached to the machine running Home Assistant, and Home Assistant would need a driver for that specific hardware. Most users do not have this setup.

Using an ESP32 as the bridge

An ESP32 is a microcontroller with built-in WiFi that costs $5 to $15. It can read the LD2410C's serial data and send it to Home Assistant over your home network. You load firmware onto the ESP32 that handles the translation between the sensor's binary protocol and a format Home Assistant understands.

ESPHome is the easiest path. It is a framework that runs on ESP32 and other microcontrollers, and it has built-in support for the LD2410C. You write a simple YAML configuration file describing your sensor, plug the ESP32 into your computer, and ESPHome compiles and uploads the firmware automatically. The ESP32 then appears in Home Assistant as a device with presence detection, distance, and motion intensity sensors.

The wiring is straightforward: connect the LD2410C's TX pin to the ESP32's RX pin, RX to TX, and ground to ground. Power both from the same 5V source. ESPHome handles the rest.

Setting up ESPHome with the LD2410C

Start by installing ESPHome on the machine running Home Assistant. If you use Home Assistant OS, ESPHome is already available as an add-on. If you run Home Assistant Core, install ESPHome via pip or Docker.

Create a new device in ESPHome and select your ESP32 board. In the YAML configuration, add the LD2410C component. A minimal config looks like this:

uart:   id: ld2410_uart   tx_pin: GPIO1   rx_pin: GPIO3   baud_rate: 115200 ld2410:   uart_id: ld2410_uart

Adjust the TX and RX pin numbers to match your wiring. Compile the firmware, connect your ESP32 via USB, and click "Upload". Once the upload finishes, the ESP32 connects to your WiFi and Home Assistant discovers it automatically.

MQTT as an alternative to ESPHome

If you prefer not to use ESPHome, you can write custom code for the ESP32 using the Arduino IDE. Your code reads the LD2410C's serial data and publishes it to an MQTT broker — a message server that Home Assistant subscribes to.

This approach requires more work: you write C++ code to parse the sensor's binary protocol, connect to your WiFi, and publish to MQTT. Libraries like arduino-ld2410 exist to handle the sensor parsing, but you still write the MQTT publishing logic yourself. Home Assistant then reads the MQTT topics and creates sensors from them.

MQTT is powerful if you have many sensors or want fine-grained control, but ESPHome is simpler for most users because it handles the boilerplate automatically.

Why direct connection is not possible

Home Assistant runs on a computer or Raspberry Pi and communicates over your home network using protocols like HTTP, MQTT, and WebSocket. It has no way to open a serial port on a device across the network. Even if Home Assistant ran on the same machine as the LD2410C, the sensor would still need a driver and a Home Assistant integration specifically written for it — neither of which exist in the standard installation.

The LD2410C was designed as a component for embedded systems, not as a standalone networked device. Adding a microcontroller bridge is the standard solution in the maker community, and ESPHome has made it simple enough that you do not need to be an experienced programmer.

Frequently Asked Questions

Can I connect the LD2410C directly to a Raspberry Pi running Home Assistant?

Yes, if you attach the LD2410C via USB-to-serial adapter to the Raspberry Pi's USB port. However, Home Assistant still cannot read it without additional software. You would need to run a separate service on the Raspberry Pi that reads the serial port and publishes to MQTT, or use ESPHome on the Raspberry Pi itself. ESPHome on an ESP32 is simpler because the ESP32 handles everything wirelessly.

Do I need a separate MQTT broker if I use ESPHome?

No. ESPHome can communicate with Home Assistant directly using the native ESPHome protocol over your network. You only need MQTT if you choose the custom Arduino approach or want to integrate other devices that use MQTT.

What if I do not want to solder wires to the LD2410C?

Some vendors sell pre-assembled LD2410C modules with connectors already attached. Search for "LD2410C breakout board" or "LD2410C module with headers". These cost a few dollars more but eliminate soldering. The wiring to the ESP32 remains the same.

Can I use an Arduino instead of an ESP32?

An Arduino Uno or Nano has no WiFi, so it cannot send data to Home Assistant over your network. You would need an Arduino with WiFi like the Arduino MKR WiFi 1010, which costs more than an ESP32 and has fewer resources. An ESP32 is the better choice.

Does the LD2410C work with other smart home platforms?

Yes, the same bridge approach works with any platform that accepts MQTT or HTTP input — Home Assistant, Node-RED, OpenHAB, or custom scripts. The microcontroller and firmware remain the same; only the receiving platform changes.