Sensors are another type of input that can be connected to the Raspberry Pi. They may gather data about, for example, light or temperature conditions, but fundamentally they work in a similar way to the push button: they provide different input to the Pi depending on something that is happening externally.