Hello Christophe, i tried as the per the article and i have a problem. The setup only works for the first motion, after that if the esp goes to sleep it is not restarting.
i followed Fritzing with capacitor connection, i connected the PIR out pin to ceramic capacitor's one end and i use the same end to connect to ground via 1k resistor. [ https://mevihub.com/pir-sensor-arduino/ sample connection diagram ]. i have no idea why it works only for the first time.
Debugging: i removed the capacitor from the breadboard and placed it again after few seconds, then it works, but again only once.
I would need your help, thank you.