After getting the code , you need to upload the code and it requires few settings to upload the code so make sure you did following thing during upload because its a hug code so it will not get uploaded by normal method.



Go to Tools > Board and select ESP32 Wrover Module

Go to Tools > Port and select the COM port the ESP32 is connected to

In Tools > Partition Scheme, select “Huge APP (3MB No OTA)“



Before uploading the code, you need to input your wifi credentials in the following part of code:



const char* ssid = "REPLACE_WITH_YOUR_SSID";



const char* password = "REPLACE_WITH_YOUR_PASSWORD";



and make sure you select the right camera module.



As here we’re using the AI-THINKER Model so select the following So, comment all the other models and uncomment this one:



#define CAMERA_MODEL_AI_THINKER





Press the ESP32-CAM on-board RESET button

Then, click the upload button to upload the code.