Help with 12V led conection

I get what you are saying, you can run the same code on the ESP32-CAM and take the pictures and store them, all in the same Arduino program.