Added the option to use device light sensor.
