To create our home security dashboard, we will modify the code we wrote in Chapter 7, Setting Up a Raspberry Pi Web Server. These modifications include adding sensory data from the GPIO—something we became very good at by the end of Chapter 17, Reading Raspberry Pi GPIO Sensor Data Using Python.
Two of the inputs, the temperature and humidity sensor and the Pi camera, will require additional steps so that we can integrate them into our dashboard.
The DHT11 temperature and humidity sensor is a low-cost hobbyist-grade sensor, capable of providing basic measurements. The DHT11 comes in two different versions, the four-pin model and the three-pin model.
We will be using the three-pin model for our project (see the following picture):
The library we will be using to read DHT11 data, the Adafruit DHT
library, does not come pre-installed on Raspbian (as of the time of writing). To install it, we will clone the library...