I try to connect PIR to my cactus and work perfect.
When i connect wifi, the pir work crazy, and i have random output.
It 'possible that when you connect your wifi, cactus give less power to the pir?
It 'a possible firmware bug?
I try all pin with and without connect the wifi.