Minecraft wiki entry for Daylight_detector, associated text: By connecting the sensor to a NOT gate (inverter), it outputs a signal when the light level is less than 4, so players can, for example, make lights that turn on at night, or gates that automatically close.