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-07 00:09:57 +05:30
.gitignore Added .gitignore file 2024-10-06 23:03:48 +05:30
alt-temp.py Added sample code for alternative temperature measure and added method in README file. 2024-10-07 00:09:57 +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 links for alternative method. 2024-10-07 00:00:22 +05:30
raspi-blinka.py Added raspi-blinka script. 2024-10-06 23:02:38 +05:30
README.md Added sample code for alternative temperature measure and added method in README file. 2024-10-07 00:09:57 +05:30

DHT Humidity Sensing on Raspberry Pi

This project is a uses the AdaFruit libraries for sensing temperature using DHT11 sensor and a Raspberry Pi.


Alternative method

Note

This alternative 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 upgrade -y &&\
sudo apt install python3 python3-pip -y

  1. Setup a virtual environment & install the library:
mkdir /home/$(whoami)/temp-sensor
cd /home/$(whoami)/temp-sensor
python3 -m venv .
source bin/activate
pip install dht11 setuptools RPi.GPIO
  1. Run the code alt-temp.py