Smart AI Umbrella for Crops
This project automates crop protection using sensors, Raspberry Pi, and AI.
# πΎ Smart AI Umbrella System
An IoT-based smart agriculture system that automatically protects crops using environmental conditions.
## π Features
- π‘ Temperature monitoring
- π§ Rain detection
- π± Soil moisture detection
- β Automated umbrella control
- π Real-time dashboard
- π§ Decision engine with explanations
- π Sensor data visualization
- β Manual and auto modes
## π§ Working
The system uses a rule-based algorithm:
- Rain + Dry Soil β Close umbrella (allow irrigation)
- Rain + Moist Soil β Open umbrella
- High Temperature β Open umbrella
- Normal Conditions β Close umbrella
## π₯ Tech Stack
- Python
- Flask
- HTML/CSS
- Chart.js
## π Project Structure
- `main.py` β Decision engine
- `dashboard/app.py` β Backend server
- `templates/` β UI
- `static/` β CSS
- `shared/state.json` β System state
## βΆ How to Run
```bash
python main.py
cd dashboard
python app.py