Arduino IDE gives an error message “cannot find esp_camera.h” on compile. This is after adding the expressif file to the preference menu. Where can I find the esp_camera.h file??
Which code are you trying to run?
Make sure you have an ESP32 camera board selected on the Boards menu before compiling or uploading the code.
But it should be there automatically, after installing the ESP32 boards.