I am looking for a ESPHome solution that scans the gate area before it allows the gate to close; particularly the gate clearance area. I used to have an inbuilt IR sensor but that has stopped working… My research seems to suggest maybe an ultrasonic sensor would work… but I am not sure how to implement it. any suggestions? It is unlikely i have power there… unless i draw from the gate… so prefer a battery powered solution, thanks v much in advance community
What’s wrong with gate power supply? I use it without problems for my esp32 which controls gate, electronics has more than enough reserve for that. You just need to convert it’s 24VAC to 5VDC. If you use switcher for that draw from 24VAC will be even smaller. I use graetz and module similar to THIS - it’s just an example, make sure it can handle input voltage of about 35V or more.
Regarding sensor: perhaps you should look LD2450, which is, as i read presence sensor with multiple targets options (it can report multiple persons). The topic about it exists here on this forum.