Light meter.
Hold your phone level, sensor facing the light source (usually next to the front camera). Don't cover the sensor with your hand. Android Chrome reads ambient light in lux; other browsers cannot.
Source: AmbientLightSensor (Generic Sensor API). Reading is quantised and rate-limited by the browser for privacy. Scene references on the right are typical values — your sensor's calibration may differ by ±30%.