Ambient light sensor

Many Mac computers and displays have a built-in ambient light sensor, which makes automatic brightness adjustments on the display based on current lighting conditions.

If your Mac has an ambient light sensor, you can use it to adjust the screen’s brightness in Displays settings.