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-11-06 11:53:41 +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 Script no longer exits the directory already exists. 2024-10-23 13:25:46 +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 Since ada fruit has been tested and works, I've changed the description in README and fixed a grammatical error. 2024-10-23 13:25:54 +05:30
REQUIREMENTS.md Added requirements file. 2024-10-07 02:12:53 +05:30
setup.sh Script no longer exits the directory already exists. 2024-10-23 13:25:46 +05:30
temp-calc.py Added description in temp-calc for setwarnings 2024-11-06 11:53:41 +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 has been tested on Raspberry Pi 3B. For easier 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.