Added inverted daylight sensor