Setting up DHT11 on Raspberry Pi
The following tutorial is meant to setup the DHT11 humidity and temperature sensor to work on the Raspberry Pi 3
Last updated
The following tutorial is meant to setup the DHT11 humidity and temperature sensor to work on the Raspberry Pi 3
Last updated
Step 1: The first thing that you will need to do is to wire the circuit for the DHT11 sensor with the Raspberry Pi. The VCC pin of the sensor will be connected to the 5V pin on the Raspberry Pi, GND will be connected to the GND of the Pi, lastly the DATA pin will be connected to GPIO 4 on the Raspberry Pi.
Step 2: The next following task is to install the dependencies. First you will need to install updates and upgrade as follows:
You need to install PIP before you can install the Adafruit_DHT module:
The python code will be as follows: