Ambient light sensor viewer

Press Start to read the ambient light sensor through the browser's Generic Sensor API. Few browsers expose it: if yours does not, the page says so instead of guessing.

Press Start to read the light sensor. Nothing is read until you do.

—Illuminance
Lowest
—
Highest
—

Readings are made in your browser and never sent anywhere. Sensors are often coarse, rounded and slow, and the descriptions are a rule of thumb, not a standard.

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Use a device whose browser exposes the sensor, over https.
  2. Press Start and cover or uncover the sensor, usually near the front camera.
  3. Watch the lux value, the minimum and maximum, and the bar (a logarithmic scale up to 100 000 lx).
  4. Press Stop to release the sensor.

How it works

The page creates an AmbientLightSensor at 5 Hz after you press Start and stops it on Stop, when you leave the page or when the tab is hidden.

Worked example

A reading of 300 lx falls in the 50–500 lx band, which people often associate with normal indoor lighting. A reading of 25 000 lx is in the direct-sun band.

Tips

  • Where the sensor sits differs between phones; try covering the top edge.
  • The bar uses a log scale, so each fifth of its width is a tenfold change.

Frequently asked questions

Why does it say the sensor is not supported?

The AmbientLightSensor API is not enabled by default in most browsers. Chrome on Android offers it behind a flag, while Safari and Firefox do not implement it. The page checks first and shows a message instead of failing.

What is a lux?

Lux is the unit of illuminance, lumens per square metre. Candlelit rooms are in the tens of lux, offices in the hundreds, and outdoor daylight in the thousands or tens of thousands.

Why do values jump or look rounded?

Browsers may round and limit light readings, and sensors differ in range and speed. Compare values on the same device rather than across devices.

Is this a calibrated light meter?

No. It is the raw number the browser reports. For photography or workplace lighting checks use a calibrated lux meter.

More in Device tests

All tools in this category: Device tests ·Updated November 3, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.