This is a Python-based project to capture temperature and humidity data using a Raspberry Pi. This repo includes the main script for data capture, setup instructions, and test scripts for development and debugging.
This is part of a larger project to map heat across urban environments.
heat-project/
|--- README.md <-- You are here.
|--- src/ <-- Main Python Scripts
| |--- capture_data.py <-- Main Script
|--- test_scripts/ <-- tests
|--- data/ <-- Data Repo
|--- logs/
|--- docs/
| |--- setup_instructions.md <-- Setup instructions
| |--- images/
| |--- misc/
|--- env/ <-- vitural environment for Python
|--- requirement.txt <-- Python dependencies
|--- .gitignore
If you have a Raspberry Pi all set up, you can follow the instructions below. Otherwise, start here to set up your Pi and install all the dependencies.
git clone https://github.com/marositesUSC/heat_project.git
cd heat-projectpython -m venv env
source env/bin/activateAfter you activate your virtual environment you should notice (env) in your console. Keep it activated now, but if you want, you can deactivate your virtual environment by running the command deactivate.
pip install -r requirements.txtpython src/capture_data.pyIf you want the script to run on boot, check out the instructions here.
Here is a basic wiring diagram for connecting the sensors to the

For temperature and humidity, we use I2C communication for the SHT3x sensors.
For location data, we connect via UHAT to an Adafruit Ultimate GPS moduel and GSPD.
More setup details can be found in docs/setup_instructions.md.
If you have a working Pi, you can clone it to a new device. Follow these instructions.

