Integration of esp32c3 super mini with ld2410 and ld2420 presence detectors

After looking for how to configure the HLK-LD2410 and HLK-LD2420 presence detectors and seeing that there was little information, I started to carry out tests to try to configure them, from these tests I got these results:

I have managed to configure both, and if you look at the YAML files you will see that you have to change pins 20 and 21 depending on the sensor you are using, I don’t know if it is because of a bad definition of the pins on the boards I have or because they are poorly silkscreened, the fact is that they both work like this.

I have also made two sketches in Fritzing to put them into operation, the PCB has been designed, I currently have both of them working.

Both have a HLK-PM01 power supply of 5V and 0.6A and are powered at 220V alternating current, as I intend to place them attached to the ceilings I have and draw the power from these.

You can find the YAML configuration and diagrams at the following link:
https://github.com/JVRMTS/Detectores__Presencia_Esp32C_SuperMini_HomeAssistant

Excuse my English, I’m using a translator

This doesn’t make sense to me.
Your wiring is wrong: You are connecting to OT1, where you should connect to OT2
grafik


(Source: HLK-LD2420/HLK-LD2420-Product Manual V1.2.pdf at 95ca950e33908ec364c3764a7c7a780ec43ee308 · soubhik-khan/HLK-LD2420 · GitHub)

What you say is correct if the device firmware is less than 1.5.3 I am using version 1.6.1


Since the 2025.7.2 update, ESPHOME stopped working if updated above that version of ESPHOME. For it to work, with versions equal to or higher than that, you have to change the pins to which the HLK-LD2024 is connected - tx_pin: GPIO07 and rx_pin: GPIO06. With the old configuration, it caused problems with the USB port.

Can you confirm that it’s working with this configuration?

Because (for the life of me) I can’t get it to work. Works fine on a regular ESP32 dev board but the c3 SM is not working for me.

Same with the LD2410, doesn’t work on the C3 SM but on the regular one