LightSensor refactor