 Facial recognition systems, like Face ID on iPhones, are generally designed not to work if your eyes are closed. This means that someone can't unlock your phone by holding it right in front of your sleeping face. But there is a catch. This feature can be turned off. Make sure it's not. Head into Settings, then Face ID and Passcode.