modified the test app to use the lightsensor