Blog

How to check ambient light changes under a desk lamp

Use the Sensors Test to see whether your device's ambient light reading changes under a desk lamp, and what to check if it stays flat.

Daniel HayesHardware tests 5 min read

You turn on a desk lamp, but your screen does not seem to react, or you want to check whether your device can detect the brighter room. A screen changing brightness is not the same as a sensor reporting a change, so test the reading directly before adjusting settings.

The Sensors Test can show light sensor data when your device and browser make it available. Compare the reading with the lamp off and on, while keeping the device in the same position.

Check the light sensor

  1. Open the Sensors Test on the device you want to check. If the browser asks for sensor permission, allow it.
  2. Look for a light or ambient light reading. Set the device on a stable surface and make sure nothing covers the sensor. On a phone, the sensor is often near the front camera or earpiece. On a laptop, it may be near the display bezel.
  3. With the desk lamp off, wait a few seconds and note the reading, if one is shown. Keep other room lighting steady.
  4. Turn on the lamp without moving the device. Aim light toward the sensor area, not just at the keyboard or the back of the screen. Wait several seconds for the reading to settle.
  5. Turn the lamp off, wait, then turn it on again. Repeating the change helps distinguish a real response from a reading that changed for another reason.

Keep the lamp at a comfortable distance. Do not place a hot bulb close to the device, and avoid shining a very bright light directly into your eyes. The goal is to change the light reaching the sensor, not to heat the device.

What the result means

The reading rises when the lamp turns on

The sensor is detecting a change in light. If the reading falls again when you turn the lamp off, that is a stronger sign that the sensor responds consistently. If the tool displays a number in lux, use it to compare the lamp-off and lamp-on readings, not as a certified measurement of room brightness.

The reading barely changes

The sensor may be pointed away from the lamp, blocked by a case or screen protector, or receiving similar light in both conditions. Try moving the lamp closer, changing its angle, and covering or uncovering the sensor area briefly. Keep the device still while you compare.

No light reading appears

This does not prove that the device is broken. Many desktop computers and monitors have no ambient light sensor, and a browser may not be allowed to access one even if the hardware exists. Some devices use a sensor internally for automatic brightness without exposing its readings to a web page.

The reading jumps or stays unchanged

Small fluctuations can come from flickering lights, moving shadows, or the sensor sampling at intervals. If it never responds to a clear change in light, check for an obstruction and try again in another browser or on another device known to have a light sensor.

How to fix a flat or missing reading

  1. Uncover the sensor. Remove anything that could shade the small sensor opening, such as a phone case lip, privacy cover, or a hand resting near the display. Do not remove a firmly attached screen protector if doing so could damage it.
  2. Change the angle and distance. Aim the lamp toward the sensor and move it closer gradually. Avoid changing the device's position between the lamp-off and lamp-on readings.
  3. Reduce other changing light. Close curtains if daylight is shifting, and turn off nearby lights that switch or flicker. Repeat the comparison with one light source changing at a time.
  4. Check browser permission. Open the site information or permissions control beside the address bar and allow sensor access if the browser offers that option. Reload the test afterward. The permission name and availability vary by browser, and some browsers do not expose ambient light data.
  5. Try a device with a known light sensor. A phone or tablet may have one even when a desktop or external monitor does not. Try an up-to-date browser on that device. A different browser can help identify a browser limitation, but it cannot add a sensor the hardware does not have.
  6. Check automatic brightness separately. If the screen brightness is the problem, look for an automatic brightness option. In Windows 11, open Settings › System › Display and check the brightness options available for that display. On macOS, open System Settings › Displays and check for an automatic brightness option if one is shown. On Android, look under Settings › Display for Adaptive brightness. On iPhone, check Settings › Accessibility › Display & Text Size › Auto-Brightness. These settings control screen behavior; they do not guarantee that a browser can read the sensor.

Why screen brightness can be misleading

Automatic brightness is a system feature, not a direct view of the sensor. The operating system may filter the reading, wait before changing the display, or limit brightness to save power. A laptop can also change brightness based on its power settings or screen content. So a screen that stays bright does not necessarily mean its sensor is inactive, and a screen that dims does not prove the browser received a light reading.

Compare the light reading itself, if available, and keep the lamp and device in a repeatable position. The Sensors Test runs in your browser, and the reading is from the device being checked.