Sensor
"Infrared sensor" is mainly used when an object approaches the sensor, and the mobile phone automatically performs a series of operations. For example, when the phone gets close to the face when you answer a call, the screen is automatically turned off; it is also used for remote unlock, etc., so it is also called "Proximity sensor".
The "Ambient light sensor" is mainly used for the phone to automatically make a series of responses when the light changes, such as automatic adjustment of screen brightness.
You can enter Settings--About phone/System management--Customer service—Manual--Overview and Quick start –Introduction to phone exterior to check more information
Is this helpful?