Change display brightness and color in Windows - Microsoft Support
Under Brightness and color, look for the Change brightness automatically when lighting changes check box, and then select it to use this feature. This automatic setting helps make sure your screen is readable wherever you go.