You might need a delay between report & shut down as a sort of debounce to prevent the ESP being woken straight away (you could proberbly disconnect and power off the WiFi during this delay if need to save battery).
Hey,
I tried this schematic and the code and most of the time after a PIR activity the board will reboot again meaning it will turn on/off multiple times. I guess your above comment is regarding that ? Have you solve it in your solution if so can you post the code for it ?
Also i would like to know the power consumption you are getting if you have data for it. I am using this PIR https://www.mpja.com/download/31227sc.pdf where it says it has Quiescent Current = <50uA but i can see you are mentioning that you use KC7783R (http://www.electronics123.net/amazon/da ... c7783r.pdf) which has Standby Current ( no load) 300uA which is quite high so i am curios on what the power consumption you see.
/donnib