So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Genesys
#63515 To start off i want to say the PIR sensor is working perfectly on the bread board where its connected to USB . I 3d printed a housing for it and added a Hi-link AC to dc 5v module and it plugs into the wall .Now i have a problem with the PIR turning on and off every fby itself .Its a little randonm and it can stay off for 15 seconds then go on off on off

Hardware is
-Wemos d1 mini
-HC SR501 PIR sensor (D1)
-(Added) Hi-link HLK-PM01 110v to 5vdc

I am using ESPeasy and Publishing MQTT to openhab2 .In ESPeasy its set up as normal switch.

What do you think it could be ? It leads me to believe its something with adding the ac to dc convertor as it was working exactly as it should on the breadboard when it was connected to usb power.
User avatar
By warwick
#63571 I have also had issues with false triggers from PIR sensors before. In my case, putting an extra RC filter (eg 100Ohm / 100uF) to decouple the power supply for the PIR sensor from the ESP8266 power supply solved the problem.