Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.54 KB

File metadata and controls

41 lines (33 loc) · 1.54 KB

DHT11 Python Raspberry-pi

Components

  1. Raspberry PI3 Model B
  2. DTH11 Sensor, available amazon.in also
  3. Bread Board
  4. Jumper Wires

Optional Components

  1. HDMI Cable 1 meter
  2. Keyboard and mouse
  3. TV

Prerequisites

See Prerequisites

Instructions

  1. The aim of this project is to measure temperature and humidity using DHT11 sensor via Raspberry pi.
  2. You will need a RasPi with the Rasbian OS, DHT11 Sensor, Jumper wires and a small bread board.
  3. First take a bread board and insert the DHT11 sensor, Now connect the GPIO(General Purpose Input Output) pins as fallows.
  4. Take a jumper wire, connect the ground pin of the DHT11 to pin(6) of the Raspberry Pi.
  5. Take another jumper wire, connect the data pin of the DHT11 to pin(7) of the Raspberry Pi.
  6. And connect, the last pin of the DHT11 which is VCC(Voltage Common Collector) to pin(2) of the Raspberry Pi.
  7. Now the circuit part is over Let's Jump to Programming part.

First Look

first-look

Use virtual environment for this project, read more information virtual environment https://realpython.com/python-virtual-environments-a-primer/

Examples

You can find the EXAMPLE.py

Execution

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
python EXAMPLE.py

This project Licensed under MIT(./LICENSE.md)