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