Temperature and humidity sensing using DHT11 and Raspberry Pi (2/3/4/5). This project contains a setup.sh script to automate the python environment setup process entirely, along with two methods to interface with DHT11.
Go to file
2024-10-10 22:35:11 +05:30
DHT11_Python Installing 'dht11' package locally now. 2024-10-10 22:35:11 +05:30
.gitignore Added .gitignore file 2024-10-06 23:03:48 +05:30
ada-setup.sh Moved setup.sh to ada-setup.sh since it's not exactly working as intended on college RPi 3. 2024-10-10 22:09:32 +05:30
alt-temp.py Moved setup.sh to ada-setup.sh since it's not exactly working as intended on college RPi 3. 2024-10-10 22:09:32 +05:30
blinka-test.py Added blinka test file for testing blinka. 2024-10-07 02:13:58 +05:30
DHT11_Python (source code).tar.xz Added source code python library: DHT11 2024-10-06 23:59:04 +05:30
GUIDES.md Added link for main doc in guides file 2024-10-07 02:13:56 +05:30
LICENSE.txt Added license file. 2024-10-07 02:12:49 +05:30
README.md Alternate method is now the main method since it's much easier to setup and it's been tested in our college IoT lab. 2024-10-10 22:15:46 +05:30
REQUIREMENTS.md Added requirements file. 2024-10-07 02:12:53 +05:30
setup.sh Installing 'dht11' package locally now. 2024-10-10 22:35:11 +05:30
temp-calc.py Alternate method is now the main method since it's much easier to setup and it's been tested in our college IoT lab. 2024-10-10 22:15:46 +05:30

DHT Humidity Sensing on Raspberry Pi

This project is a uses the basic DHT11 python library (main method) and AdaFruit libraries (alternative method) for sensing temperature using DHT11 sensor and a Raspberry Pi.


Important

Check the requirements first.

Main method

Note

Main method uses the DHT11 python library for reading the sensor data. This is a pure Python library for reading DHT11 sensor on Raspberry Pi.

  1. Install prerequisites:
sudo apt update &&\
sudo apt install -y git
  1. Clone the project:
git clone https://git.kska.io/notkshitij/DHT11.git

Alternatively, you can also download the zip file

  1. Change the current working directory to the folder in which the project was cloned:
cd ./DHT11
  1. Run the setup.sh script:
source setup.sh

Important

After running the code, and completing the execution, run deactivate in the terminal to exit the virtual environment.


Alternative method

Note

This is the alternative method, using AdaFruit library. This method doesnt' seem to work on our college Raspberry Pi 3's. For easiler setup, checkout ## Main method

  1. Install prerequisite packages:
sudo apt update &&\
sudo apt install git -y

  1. Clone the project:
git clone https://git.kska.io/notkshitij/DHT11.git

Alternatively, you can also download the zip file

  1. Change the current working directory to the folder in which the project was cloned:
cd ./DHT11
  1. Run the ada-setup.sh script:
source ada-setup.sh

Important

After running the code, and completing the execution, run deactivate in the terminal to exit the virtual environment.


License

This project is licensed under the terms of the MIT license. Read the license here.