Returns: maximum range of the sensor in the sensor's unit.
1. Determine if Android Device has Light Sensor, using SensorManager with a Sensor named mySensor and SensorManager named mySensorManager.
b. Add the below line the float declaration. This will get the maximum range of the light sensor
and save it to a float variable named myMaxRange.
myMaxRange = mySensor.getMaximumRange();
3. Compile and run!
Resources:
http://developer.android.com/reference/android/hardware/Sensor.html#getMaximumRange()
http://android-coding.blogspot.com/2011/10/using-android-device-build-in-light.html