information from photo sensors or similiar detectors about ambient light levels near the device. Measured in lux
lux: measures the perceived power of light. One lux is equal to one lumen (visible light quantity) per square metre.
window.addEventListener('devicelight', function(event) {
const light = event.value;
...
});