Starting from GALAXY S4, Samsung's smart phones have added Hall Sensor (Hall sensor), the function of this sensor is to automatically identify whether the protective case is open or closed, and then the system will automatically perform some operations according to the data sent back by the sensor, such as lighting up the screen, sleeping the screen. It's actually this sensor.