I made an MQTT Motion Detector

Yes

Any idea how to fix the ghosting? I tried putting a resistor on the ground pin from pir but didn’t help

Not sure which module you are using, but adding a capacitor like this solved the problem for me

https://redfox314.tweakblogs.net/blog/16895/esp8266-and-hc-sr501-false-positives

1 Like

this sucker runs on 3.3v https://www.amazon.com/gp/product/B0732VQ4Q2/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1