In this blog, I will explain you how to connect raspberry pi with dht11 sensor and measure the temperature and humidity readings.
Media Gallary
Components Required
1. Raspberry Pi 3
2. DHT11 sesnor
3. Breadboard
4. Jumper wires
Circuit Diagram
Step1- Make a connection as shown in above figure.
Step2- Connect DHT VCC pin to pin1 of raspberry pi and GND pin of DHT to pin39 of raspberry pi and connect data pin of DHT to pin7 of raspberry pi.
Step3- Download the DHT11 code from given link.
Step4- Folder contain two python files one is code and another act as library. Both files must be in same folder.
0 comments:
Post a Comment