working with light sensor