As always, we are going to start with a list of required hardware and software components for the project.
For the devices to control, we'll use a simple LED with a 330 Ohm resistor and then the PowerSwitch Tail Kit that we already used in several chapters of this book.
For the sensors, which we will need at the end of the chapter, we'll use a simple DHT11 sensor, along with a 4.7k Ohm resistor. We'll also use a PIR motion sensor.
Finally, you will need the usual breadboard and jumper wires.
The following is the list of components that you will need for this whole chapter, not including the Raspberry Pi Zero:
330 Ohm resistor (https://www.sparkfun.com/products/11507)
PowerSwitch Tail Kit (https://www.adafruit.com/products/268)
PIR motion sensor (https://www.sparkfun.com/products/13285)
DHT11 sensor with 4.7k Ohm resistor (https://www.adafruit.com/products/386)
PIR motion sensor (https://www.adafruit.com/products/189)
Breadboard...