This project uses a Raspberry Pi with a DHT22 sensor to record temperature and humidity data over time.
The Python script collects the sensor readings, logs them to a CSV file, and the data is visualized in Power BI (included as a PDF export for easy viewing).
| File | Description |
|---|---|
| log_dht22_loop.py | Python script that reads DHT22 sensor data and appends results (timestamp, temperature, humidity) to a CSV file. |
| sensor_log.csv | Example dataset generated by the Python script. |
| raspberry_pi_sensors_project.pdf | Power BI dashboard export showing temperature and humidity trends over time. |
-
Hardware:
- Raspberry Pi (any model with GPIO)
- DHT22 temperature & humidity sensor
- Appropriate resistors and wiring
-
Software Requirements:
- Python 3
Adafruit_DHTlibrary (install withpip install Adafruit_DHT)
-
To Run the Script:
python3 log_dht22_loop.py