I moved your topic to a more appropriate forum category @amirsaleem1990.
The Nano ESP32 category you chose is only used for discussions directly related to the Arduino Nano ESP32 board.
In the future, please take the time to pick the forum category that best suits the subject of your question. There is an "About the _____ category" topic at the top of each category that explains its purpose.
Hi @amirsaleem1990. Select Tools > Board > esp32 > AI Thinker ESP32-CAM from the Arduino IDE menus.
If you don't have a Tools > esp32 menu in Arduino IDE, this means you haven't installed the "esp32" boards platform. If so, you can install it by following these instructions: