What is a light sensor

A light sensor measures ambient light in SI lux. It is commonly used to control screen brightness and is usually located in the vicinity of the user facing camera.

Light sensors often have poor resolution. In dark rooms, it is possible that their plot will overlap with the X-axis, making it hard to see.