Hey there anfal145,
Thanks for reaching out to Apple Support Communities. We're happy to provide some assistance.
Let's follow the steps outlined in this helpful article that relates to the issue you're describing:
If the camera or flash on your iPhone, iPad, or iPod touch isn't working - Apple Support
If the camera isn't working
Remove any case, accessory, or film that might block the camera or that places a magnet near the camera.
Test the camera by trying to take a photo.
If the photo is blurry, clean the front and back camera lenses with a microfiber cloth. If you see dirt or debris inside the lens or if the camera lens appears to be misaligned or blocked, contact Apple Support for help with your iPhone, iPad, or iPod touch.
Restart your iPhone, iPad, or iPod touch.
Test the camera again by taking a photo. If your device has a front and rear camera, check if one or both isn’t working. To switch cameras, tap the rotate button
.
Keep us posted.
Have a great day!