How to get the Maximum Range of a Light Sensor

public float getMaximumRange () was added in API level 3
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.

2. In the else of the if/else in step #1,

       a. Declare a Float variable named myMaxRange

       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