@@utehstr Thanks for your quick response, I got it but there is some issues with this code is like : After reseting esp32 cam, its capturing automatically and sending to email without PIR motion. : Second is, I am unable to find the declaration of PIR sensor in the code or Pin port. Can I get your other contact purpose, Where I can get your assistance. I urgently required your assistance.