⚠️ Repository Status: Archived
This is a foundational academic tutorial project (Jan 2025) demonstrating microcontroller serial communication, real-time data acquisition, CSV persistence, and statistical scatter visualization via pandas and matplotlib. It is preserved for reference.
- Microcontroller Interfacing: Reads live temperature and humidity metrics from an Arduino Uno over serial USB.
- Data Filtering & Cleaning: Validates ranges to discard physical sensor noise and malformed transmission strings.
- CSV Data Persistence: Stores normalized environmental records into structured CSV formats for exploratory analysis.
- Statistical Analytics & Visualization: Generates summary statistics via pandas and renders temperature vs. humidity scatter plots.
- Arduino Uno / Nano with DHT11 or DHT22 temperature & humidity sensor
- USB connecting cable
- Python 3.9+
- Arduino IDE
# Clone the repository
git clone https://github.com/Knight6azer/Temperature-Humidity-Analysis.git
cd Temperature-Humidity-Analysis
# Create and activate virtual environment
python -m venv venv
# Windows:
venv\Scripts\activate
# Linux/macOS:
source venv/bin/activate
# Install dependencies
pip install -r requirements.txtUpload your DHT sensor sketch to the Arduino to output serial telemetry at 9600 baud in the following format:
Temperature: 28.5 Humidity: 65.0
Edit the COM port in code.py to match your system (e.g. 'COM3' on Windows or '/dev/ttyACM0' on Linux):
python code.pyThe script will gather data, output summary statistics, write to temperature_humidity_data.csv, and render the visualization plot.
This project is licensed under the MIT License — see the LICENSE file for details.