This simple ESP32 program connects to LD2410C via Bluetooth Low Energy (BLE), receives notification from LD2410C and turns ON/OFF a LED on ESP32 as indicator. When LD2410C detects human, the LED on ESP32 is turned ON. When LD2410C detects no human, the LED on ESP32 is turned OFF.
The password for BLE is HiLink
.
I do not want such an indicator which is far from equipement which connects to switch directly.
- Open the source file
ld2410_ble.ino
with Arduino. - Select board matches your hardware.
- Update the following hardcoded configs in source. The default is for my ESP32-C3 SuperMini board.
const int LED_PIN = 8;
#define MY_DEVICE_ADDRESS "03:92:96:00:00:00"
- Insert your hardware, compile and upload.