Introduction: DHT11 (Raspberry Pi)

Picture of DHT11 (Raspberry Pi)

How to setup a DHT11 sensor to read Temperature and Relative Humidity on the Raspberry Pi.

Step 1: Parts

Picture of Parts

Step 2: CODE

Picture of CODE

1. SSH into Pi

2. Type "git clone"

3. cd DHT11_Python

4. sudo nano

5. edit line 13 and change to "pin=17"

6. add new line 19 and type " print("Temperature: %d F" % ((result.temperature * 9/5) +32)) "

7. save file and run python file

Step 3: Optional Walkthrough

Picture of Optional Walkthrough


About This Instructable




Bio: the Raspberry Pi is Awesome!
More by piddlerintheroot:Accelerometer (Raspberry Pi)Flame Sensor (Raspberry Pi)Soil Moisture Sensor (Raspberry Pi)
Add instructable to: