ESP32 brownout on HTTP GET Request

The PIR is causing the issue. I completely detached the PIR and ran ISR code in loop. It is not giving any problem. PIR might be faulty