This project delivers a Resilient, Low-Cost Greenhouse Climate Control and Monitoring Solution explicitly engineered for the unique operational challenges within the South African agricultural sector, particularly mitigating risks associated with load shedding, water scarcity, and climate volatility.
# EcoView 🌿
**Transforming Agriculture Through Technology and Sustainability**
This project — **EcoView**, a **resilient, low-cost greenhouse climate control and monitoring solution** designed specifically for the **South African agricultural context**, addressing challenges such as **seasonal wildfires, load shedding, water scarcity, and climate volatility**.
---
## Core System Overview
EcoView integrates **two ESP32 microcontrollers** operating in tandem:
- **Node 1 (Environmental Monitoring):** Gathers temperature, humidity, air quality, and light data using DHT22, BMP280, LDR, and MQ gas sensors.
- **Node 2 (Fire Safety & Actuation):** Controls a servo motor for vents, fan, and relay system to respond to flame detection events and environmental thresholds.
Data from both nodes is transmitted via **MQTT** as JSON payloads to an **Oracle APEX cloud database**, where it is visualized and managed in real time through a **Flutter mobile application**.
---
## Key Resilience & Innovation Features
### 💧 Soil Management
- Using a collaboration with a **Soil Management Team** for **soil sensors and data**.
- Enables data-driven AI recommendations.
- Supports sustainable farming practices.
### 🔥 Fire Detection and Ventilation Safety System
- Developed in response to **Cape Town’s wildfire risks**.
- Integrates a **Flame IR Sensor** for early flame detection.
- On detection, the system:
- Shuts down the **12V ventilation fan** via relay.
- Activates the **SG90 servo motor** to close vent flaps, restricting oxygen flow.
- Issues a local alert and cloud notification through Oracle APEX.
- Designed for both **climate control** and **fire containment**, ensuring dual functionality.
### 🛑 Manual Safety Override
- A **hardware emergency button** allows manual activation or deactivation of fans.
- Provides direct, local safety control even if Wi-Fi or cloud services are unavailable.
### 🔔 Real-Time Data & Alerts
- MQTT publishes JSON payloads directly to the **Oracle AP …