This project reads temperature and humidity data using a DHT11 sensor connected to a Raspberry Pi Zero 2W.
| DHT11 Pin | Raspberry Pi |
|---|---|
| + | 3.3V |
| S | GPIO 4 |
| - | GND |
- adafruit-circuitpython-dht
- adafruit-blinka
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.