Skip to content

FranzTscharf/Python-DHT22-Temperature-Humidity-Sensor-Raspberry-Pi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Python-DHT22-Temperature-Humidity-Sensor-Raspberry-Pi

Python script for the DHT22 Sensor on the Raspberry Pi

1. Connecting Schema

image1 Image of Yaktoc2at

2. Install the Dependencies

*update raspbian

sudo apt-get update

*install packages

sudo apt-get install build-essential python-dev python-openssl git

*load sensor library from Adafruit

git clone https://github.com/adafruit/Adafruit_Python_DHT.git && cd Adafruit_Python_DHT

*install it

sudo python setup.py install

3. First Measurements

*try reading the temperature and humidity using the example file

cd exmaples
sudo ./AdafruitDHT.py 22 4