Daylight Detector

A Daylight Sensor is a redstone mechanism which is planned to be added in the Redstone Update. It emits a redstone signal if it is bright enough (sunlight level) to do so. The strength of the redstone signal varies by the time of day. For example, the sensor will emit redstone for 15 blocks at midday but roughly 5 blocks at evening. The daylight detector emits a redstone current to any/all blocks placed directly (within 1 block) above/below/next to it.

If the Daylight Sensor has a block above it, then it will emit a weaker, or no signal, as it is directly proportional to the sky light, which can be useful for controlling light levels with redstone lamps and pistons to cover and uncover the sensor. Using a NOT gate (also known as an inverted Redstone signal) can reverse the sensor's signal, creating a "night sensor." This can, for example, allow redstone lamps to come on at night and off during daytime.

As a nighttime detector
By connecting the sensor to a NOT Gate, it will output a signal when the light level is LESS than 4, so you can for example make lights that turn on at night.

As Decoration
Because energy is not something currently measured in minecraft, you can use the sensor for decoration.

Output
Here is a table of outputs to light levels. Note that moonlight is level 4 light, but only sunlight is measured. The moon comes up as the sun reaches light level 4, but technically the sun's light level continues to drop. Because of this, the output continues below 4 (to 0), even though the light level is 4.

The Daylight Sensor outputs no signal from the time of 13650 until 22300.

Bugs

 * Covering a sensor completely will cause it to glitch and turn on at night. (as well as day)

Trivia

 * Daylight Sensors only work by sunlight and cannot be activated by other light sources such as luminescent blocks or torches.
 * Daylight Sensors are less than a slab tall, which is like redstone repeaters, redstone comparators and trapdoors.
 * A daylight sensor connected to a dispenser via redstone wire will cause the dispenser to fire every time the light level changes.
 * Rain will affect the sensor.

Gallery
 File:daylightsensorscomparison.png|A comparison of sensor outputs, depending on conditions. File:Automatic_Lighting.png|An example of using the daylight sensor to provide lighting at night. File:13w01a mojang release.png|The 13w01a Snapshot image.

Tageslichtdetektor Daylight Sensor/es Détecteur de lumière du jour Датчик света 阳光探测器