Skip to content

About

Raspberry Pi temperature and humidity monitoring using a DHT11 sensor and Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Temperature & Humidity Sensor Project

This project reads temperature and humidity data using a DHT11 sensor connected to a Raspberry Pi Zero 2W.

Hardware Connections

DHT11 Pin Raspberry Pi
+ 3.3V
S GPIO 4
- GND

Python Libraries

  • adafruit-circuitpython-dht
  • adafruit-blinka

Run

python3 temp_humidity.py


## Data Logging

The project includes a data logger that records DHT11 readings to a CSV file.

The log file is named:

```bash
sensor_log.csv

Each row contains:

timestamp, temperature_c, humidity_percent

Example:

2026-05-18 15:07:55,22.9,31.0

RuntimeError checksum failures may happen occasionally with DHT11 sensors. These are handled safely and the program continues reading.

sensor_log.csv is ignored by Git because it is generated data.

About

Raspberry Pi temperature and humidity monitoring using a DHT11 sensor and Python.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages