Imported from the Apple Support Forums via the Wayback Machine 🔗
You have not mentioned iPhone model and iOS. However assuming Face ID exists in you iPhone
Check that nothing is covering the TrueDepth camera
Make sure that the TrueDepth camera on your iPhone or iPad isn't covered with a case or a screen protector. Also, check if there’s residue or dirt covering the TrueDepth camera.
If you're using an iPad in landscape orientation, make sure that your finger or palm isn't covering the TrueDepth camera. If it is, you might see an alert at the top of the screen that says "Camera covered" with an arrow pointing at the TrueDepth camera.