This project provides a step-by-step guide for replicating and running an environmental monitoring setup using a Raspberry Pi Zero 2 WH and an Adafruit temperature sensor.
You will need to upload the provided Python script to your Raspberry Pi via SSH and execute it. However, since you may want the program to continue running even after closing your terminal session, it is recommended to use Screen in order to maintain its operation in the background.
Once the setup is active, allow the system to collect temperature data for your desired duration, as the Raspberry Pi and sensor will continuously log readings. After gathering sufficient data, you can transfer the generated CSV file from the Raspberry Pi to your main computer for further analysis.
The project includes three visualizations for exploring your collected temperature measurements. The first displays a 24-hour average of all recorded data. The second offers a detailed breakdown by day. Finally, the third visualization presents a line graph of hourly averages.
It’s worth noting the Python script generates approximately 3-4 MB of data per day, though this may vary depending on factors like sampling frequency or environmental conditions.
When preparing to visualize your data, be aware rendering these graphs can be resource-intensive. The process may take several minutes to complete due to the volume of data being processed, and it may consume more RAM than anticipated.
To ensure smooth operation, allocate sufficient system resources before launching the visualizations or consider processing smaller datasets incrementally if needed. This will help improve performance while maintaining accuracy in your temperature analysis.
Bret Bernhoft
Katarina Zvarova
Adam Wakelin