Fixed reading of sunlight key