working, with light sensor