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's GitHub project and build it from the source.
Open up a Terminal window, and type the following command to use git and download ...