I find myself with an ESP32 board with an OV2640 camera (a Firebeetle 2). My application is to build a lux Sensor to run motorized builds (which take commands from a WiFi hub) when an individual window is showing high lux (lower blinds) or low lux (raise blinds). I can definitely and obviously just solder on and use a photoresistor, but given that the camera is already there... I wondered if there was a practical way to use it to measure the rough light level. APKLUB
I moved your topic to a more appropriate forum category @irealanujuti.
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.