Opposite is a simple light/ dark sensor. This can be connected as an input or switch to another circuit. The sensors has three green wires (1, 2 and 3). Wire 2 should always be connected to one of the inputs. If wire 1 is also connected then the sensor acts as a dark sensor. If wires 2 and 3 are connected to the inputs then sensor operates as a light sensor.
The preset resistor allows the person using the circuit to alter its sensitivity to light/dark