light sensor class