Updated and integrated light sensor class