HomeAll ToolsLight Sensor

Ambient Light Sensor (Lux) Test

Read real-time Lux usage. Test auto-brightness hardware.

Control and sampling

Not listening
Frequency: 0/s · Update: -
Current reading (lux)
-
Note: The larger the lux, the brighter the environment. Different devices/browsers may perform filtering, and the readings may not be "linearly consistent".
Statistics (recent 0 items)
min
- lx
max
- lx
avg
- lx
Δ(last time)
-
Used to verify automatic brightness: combine "dotting" and screen recording to observe the lag and amplitude of system brightness changes relative to lux changes.
Trends (recent 0 items)min 0.00 lx · max 0.00 lx
No data yet
Tip: If the curve "jitters", it may be due to the light source flickering (LED/PWM), the device's automatic exposure/filtering strategy, or the sensor sampling frequency difference.

recent readings

timeluxRemark
No data yet. Click "Start Listening", then cover/move the sensor with your hand or change the lighting.

Availability and Permissions

Security context (HTTPS)
No (may cause the sensor to be unavailable)
AmbientLightSensor
Not available
Permission: unknown
devicelight (old interface)
Not available (common)
Note: This interface has been deprecated and is more used for "use when you have it".
current environment
Not selected
Current browsers/devices do not expose the ambient light reading API. We recommend using Android Chrome (HTTPS) and confirming that the device has an ambient light sensor.

event log

No logs yet

Quickly verify automatic brightness linkage

Turn on "Auto Brightness/Adaptive Brightness" in system settings.
Click "Start Monitoring" and observe whether lux changes (frequency > 0).
Use your hand to cover/move away the ambient light sensor location (usually near the earpiece/front camera).
Click "Dot" and observe the system brightness changes at the same time to estimate the linkage delay and amplitude.
Try to test on a phone/tablet: many desktop browsers do not expose ambient light sensor readings.
Different browsers/systems may not provide ambient light readings at all for privacy reasons: a page showing "not supported" does not mean that the device does not have a sensor.
Verify automatic brightness: first turn on the system's "automatic brightness/adaptive brightness", then block/move the front sensor position, and observe whether the delay and amplitude of lux and system brightness changes are consistent.
If the readings are jittering: it may be caused by LED flickering (PWM) or sensor filtering/sampling differences. It is recommended to change to a stable light source or lengthen the observation window.

Sensor Guide

Verify sensor readings and auto-brightness reaction.

Step 1

Prepare environment and system settings

about 10 seconds

Prioritize testing in a mobile browser + HTTPS environment, and turn on system automatic brightness.

Try to use a mobile phone/tablet browser to open it (mostly not supported on desktop)
Confirm it's HTTPS (security context)
Turn on "Auto Brightness/Adaptive Brightness" in system settings
Turn off modes that may affect the look and feel: Extreme Dark Mode/Eye Saver Mode/Fixed Brightness Lock (depending on the system)
Tip: Even if a device has an ambient light sensor, the browser may not provide readings for privacy reasons.
Step 2

Start listening and confirm that the readings are changing

about 10 seconds

Click "Start Monitoring" and first check the frequency and update time to confirm that the sensor is indeed reporting.

Click "Start Monitoring"
Observe whether "Frequency: xx/s" is greater than 0
Observe whether "update time: xxms/xxs" continues to refresh
If there is no data: change browser/change device/confirm HTTPS, and check the logs and error messages
Step 3

Make occlusion/illumination changes and compare with automatic brightness linkage

about 20 seconds

Make a step change in lux by blocking/moving the sensor away or changing the light intensity and see how the system brightness responds.

Find the sensor location (usually near the earpiece/front camera)
Cover with hand for 2-3 seconds → move away for 2-3 seconds, repeat 3 times
Observe whether lux changes synchronously and whether there are obvious steps in the trend chart
Click "Dot" and observe the delay of system brightness changes (screen recording playback available)

FAQ

Frequently asked questions about ambient light readings, automatic brightness linkage, and browser compatibility.

1.

What can this page test?

It will try to read the ambient illumination (lux, if supported by the browser/device), and display real-time readings, changing trends, recent records and sampling frequency to help you verify whether the system's automatic brightness/adaptive brightness follows the changes in ambient light, as well as the delay and consistency of the linkage.

2.

Why does it show "not supported"? My phone obviously has automatic brightness.

Very common. Due to privacy/fingerprint recognition risks, many browsers do not expose ambient light sensor readings by default; the fact that the system's automatic brightness is available does not mean that the Web API must be open. It is recommended to change to an environment that may be supported, such as Android Chrome.

3.

What is lux? What range is considered light/dark?

lux is a unit of illuminance (light intensity). Rough reference: dark room/night probably < 10lx; normal indoors 50–300lx; bright office/outdoors on cloudy days 300–2000lx; direct sunlight may be much higher than this. Different equipment sensors and filters will lead to differences in readings. It is recommended to look at "trends" rather than absolute values.

4.

Why does the reading change but the system brightness remains unchanged?

The system's automatic brightness generally has hysteresis and smoothing strategies (to avoid frequent jumps), and will take into account the user's manual adjustment habits, content brightness, HDR, eye protection mode, power saving mode and other factors. You can lengthen the observation time (10–30 seconds), increase the occlusion amplitude, or reset/turn off relevant enhancements in the system before comparing the test.

5.

Why do readings jitter/jump a lot?

Common reasons are light source flicker (LED/PWM), environmental reflection, and device sensor sampling and filtering strategies are different. It is recommended to switch to a stable light source (such as natural light/better lights), or maintain a more stable occlusion method, and observe trends rather than single point values.

6.

What's the use of "dotting"?

"Dot" will record a time mark in the log so that you can compare it during screen recording playback: when did a certain occlusion/removal occur, how many milliseconds/seconds did the system brightness start to change, and whether it is consistent every time.

7.

How about security/privacy? Will the data be uploaded?

Won't. Readings, trend calculations, and logging are done locally in the browser, and your sensor data is not uploaded. It should be noted that some browsers will directly disable the ambient light API due to privacy concerns, which is a browser policy.