Hi kdeemer,
You can view details for techincal specifications for your iPhone below and here: iPhone 12 Pro - Technical Specifications
"Environmental Requirements
- Operating ambient temperature: 32° to 95° F (0° to 35° C)
- Non-operating temperature: −4° to 113° F (−20° to 45° C)
- Relative humidity: 5% to 95% noncondensing
- Operating altitude: tested up to 10,000 feet (3000 m)"
If you plan on being in that environment again and the issue continues, test the steps below found in this article: If the camera or flash on your iPhone, iPad, or iPod touch isn't working - Apple Support
"Remove case, accessory, or film and test
- Remove any case, accessory, or film that might block the camera or flash or that places a magnet near the camera.
- Test the camera by trying to take a photo.
- Test the LED flash:
- Try the flashlight in Control Center on your iPhone or Control Center on your iPad. On an iPhone X or later or an iPad, swipe down from the upper-right corner of the screen. On an iPhone 8 or earlier, swipe up from the bottom edge of any screen.
- Tap the Flashlight button
."
Reach out to Apple Support directly if you need further assistance.
Contact - Official Apple Support
Contact Apple for support and service - Apple Support
Best.