Example Code for light sensor on Android devices