Bug fix(light sensor)