The sensor
How does a machine know it is night outside?
Thanks to a sensor. A sensor detects a physical quantity — here, light — and transforms it into information the machine can understand. It is rather like the system's eye: without it, street lighting would never know when to turn on.