How to get HLK-LD303 working with ESPHome?

so i got this sensor for presence
image

from https://www.aliexpress.us/item/3256803374930067.html
in ESPHome, which template can i use to get my sensor working?

There is this - Low-latency presence sensor: mmWave + PIR using ESPHome.

It’s not natively available as a sensor.

I have one. No template that I found. Didn’t search that hard though as this sensor is Doppler only I believe. It is not a presense sensor, it measures the distance of the closest moving object. That’s it. Movement stop, measurement stops.

Yeah - same sensor just used differently.

Looks like yours has serial output only. You will need to do a custom UART component.

https://esphome.io/custom/uart.html

yes, that’s fine! i only need to know distance. which template or code can i use into ESPHome?
i wonder if this works Ultrasonic Distance Sensor — ESPHome

very sad nobody has used this sensor specifically so i can just copy n paste the yml.
following your guidance, i found this YT tutorial. hope it works DIY Home Assistant Air Quality Sensor - espHome custom sensor | DFRobot Sensor - YouTube
thanks!