system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How do computer screens detect light and adjust the brightness accordingly?
gpt
They use an ambient light sensor.  It isn't the screen itself that detects the external brightness, instead it can be a component of the camera or a separate sensor entirely.  On the iPhone, there is an ambient light sensor next to the camera.