I've tried a bit with the HB100 microwave sensor, and also with the PIR sensors. No luck with the former, and limited luck with the latter (they work where there is no sunlight, for the cheapest modules. I can't seem to find much on software solutions that block ambient light changes in FOSS world for PIR modules...). I've moved on to infrared tripwire sensors which so far I am happy with.
Code: Select all
https://git.steakelectronics.com/adminguy/ZMHW_Project_InfraredDiodeSensor.git archive link: http://web.archive.org/web/https://git.steakelectronics.com/adminguy/ZMHW_Project_InfraredDiodeSensor/archive/master.tar.gz
I included some documentation and pictures of my setup. You'll see that I was forced to use two different walls and got around this by putting the sensor at a 90 degree angle in one wall via a drilled hole in a project box. It's somewhat laborious to wire these, as you are putting two outlets in, but it works flawless when installed. More details in the repo.