Lux Calc - Measure Ambient Light Intensity with Your Smartphone
Use your smartphone to measure the ambient light intensity in real-time! This app utilizes your device’s built-in light sensor to accurately calculate and display the current lux value. This app will not monitor other activity of your device. Whether you're checking lighting conditions for photography, indoor plants, or ensuring proper lighting in your workspace, Lux Meter provides quick and precise readings.
// Initialize the Sensor Manager
sensorManager = (SensorManager)getSystemService(SENSOR_SERVICE);
// Get the light sensor
lightSensor = sensorManager.getDefaultSensor(Sensor.TYPE_LIGHT);
// Initialize the TextView for displaying lux value
luxTextView = findViewById(R.id.lux_value);


Lux is used to quantify how well a space or surface is lit, considering both the intensity of the light and how spread out it is across a surface.
Lumen is used to quantify how much light a light source emits. A higher lumen rating means the light source is brighter