Skip to content

Repository files navigation

DHT22 Temperature Sensor

If pin 4 does not work, maybe try pin 2.

sqlite3 db/measurements.db "$(cat schema.sql)"

python -m venv venv
source venv/bin/activate

sudo apt install python3-dev
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt

# install service
cp temperature-service.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl start temperature-service.service
sudo systemctl enable temperature-service.service

About

Measuring the temperature in my room using a raspberry pi and DHT22 sensor

Resources

Stars

0 stars

Watchers

1 watching

Forks

Used by

Contributors

Languages