Presence Sensor

ESP32 + LD2412 mmWave Radar

Flash Firmware

Connect your ESP32 via USB and click the button below.

Your browser doesn't support Web Serial.
Use Chrome or Edge on desktop.
Serial access denied. Reload and try again.

After Flashing

1

Connect to WiFi

The sensor creates a WiFi network called Presence-Sensor-Setup. Connect to it (password: presence123) and configure your home WiFi.

2

Add to Home Assistant

Once connected, HA will auto-discover the sensor. Go to Settings → Devices → Add Integration → ESPHome.

3

Position the Sensor

Mount the sensor 1-2m high, facing the area you want to monitor. The radar detects through walls, so avoid pointing at adjacent rooms.

Requirements

  • ESP32 WROOM DevKit (NOT ESP32-C3)
  • LD2412 mmWave radar module
  • Wiring: Radar TX→GPIO16, RX→GPIO17, 5V, GND
  • Chrome or Edge browser (for Web Serial)
ESP32-C3 Not Supported

ESP32-C3 boards have WiFi stability issues with some routers. Use ESP32 WROOM for reliable operation.

Source Code

This is open source hardware. Build your own, modify the firmware, or contribute improvements.

github.com/Myaiappsandstuff/presence-sensor