This post is going to share how to use DHT11 sensors with a the raspberry pi , using the GPIO pins. Furthermore the particular sensor that I am going to be discussing requires zero soldering and is purely plug and play.

The Sensor:
The sensor that we will be using is the DHT11 – the exact variant is the 3 pin version. You can find the exact version that I used here

This pack of 5 sensors also comes with the cables you will need to hook up the DHT11 to the GPIO pinout of the raspberry pi.

The PIN Layout
The sensor pin are a positive power pin, a neutral pin and a data pin. Depending on the version of your raspberry pi, the GPIO layout can very. The following diagram shows the GPIO layout for the raspberry pi 3 – the board I used:

The pins to connect the DHT11 to in this example would be 2, 6, and 7. That being said, it would be possible to use any of the other available data pins (green), if this was the only device attached via the GPIO pins.