Skip to content

AtharvSabde/Cropverse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CropVerse 🌱

Smart Environment Monitoring & Control System for Precision Agriculture

CropVerse is an integrated IoT solution combining intelligent hardware sensors with cloud-based analytics to revolutionize post-harvest storage management and reduce agricultural losses.


πŸ”§ Hardware System (IoT Sensors & Control)

🌑️ Environmental Monitoring

Our Arduino-based sensor nodes continuously monitor critical storage parameters:

  • Temperature sensing - Real-time thermal monitoring
  • Humidity tracking - Precise RH% measurement with DHT22/industrial probes
  • Methane detection - Early spoilage detection through gas analysis (MQ-x sensors)

⚑ Automated Control Systems

Climate Control:

  • Exhaust fans (2Γ— 300mm, 1000 CFM) - Automatic ventilation on threshold breach
  • Circulation fans (4Γ— 18" industrial) - Uniform air distribution
  • Dehumidifier (50-90 L/day) - Moisture control during humid conditions
  • Humidifier - Humidity boost when needed
  • Cooling blowers (2Γ— ducted) - Targeted cooling along storage trays
  • Heating system - Temperature stabilization during cold periods

Preservation Systems:

  • Natural preservative release - Controlled dispensing of eugenol & thymol sachets
  • PCO air sanitizer - Photocatalytic oxidation (UV+TiOβ‚‚) for air purification

πŸ—οΈ Physical Infrastructure

  • 8 galvanized steel racks - Robust GI tubing/angle construction
  • 40 FRP storage trays - Corrosion-resistant, food-grade molded trays
  • Solar power system (4-5 kW) - Sustainable energy generation (~20 kWh/day)
  • Battery backup (10 kWh Li-ion) - Uninterrupted operation during outages

πŸ”Œ IoT Controller Architecture

  • Microcontroller: Arduino/Raspberry Pi based control unit
  • Relay modules - Automated device switching
  • Contactors & surge protection - Safe electrical integration
  • WiFi/GSM connectivity - Real-time data transmission to cloud
  • Compact JSON protocol - Optimized for low-bandwidth IoT environments

🎯 Hardware Functionality

  • Continuous 24/7 environmental monitoring
  • Automatic ventilation control on threshold exceed
  • Ideal humidity balance via coordinated dehumidifier + humidifier operation
  • Smart cooling and heating for stable temperature maintenance
  • Early spoilage detection through methane spike analysis
  • Immediate removal of contaminated air to prevent chain-rotting
  • Controlled release of natural preservatives
  • Real-time alerts sent to farmer's phone
  • Automated system that extends shelf life and reduces losses

πŸ’» Software System (Cloud Platform & Analytics)

πŸ”Œ Secure Device Integration

  • Authenticated device onboarding with unique credentials for each sensor node
  • Resilient data ingestion tolerating intermittent connectivity and network issues
  • Batch and real-time submission support for flexible deployment scenarios
  • Schema validation ensuring data consistency and quality

πŸ“Š Real-Time Monitoring & Analytics Dashboard

  • Live dashboard updates via Firebase real-time listeners
  • Time-series trend analysis with configurable aggregation windows (minute/hour/day)
  • Statistical anomaly detection using moving averages and z-score analysis
  • Cross-sensor correlation matrices to identify environmental relationships
  • Pre-computed aggregations for instant historical query performance
  • Interactive data visualization - Charts, graphs, and trend indicators

🚨 Intelligent Alerting System

  • Multi-tier threshold configuration (info/warning/critical severity levels)
  • Dynamic thresholding with hysteresis to prevent alert flapping
  • Complete alert lifecycle management (acknowledgement, escalation, auto-closure)
  • Multi-channel notifications via email, SMS, and push notifications
  • Smart grouping and throttling to reduce operator alert fatigue

πŸ€– AI-Powered Operational Assistant

  • Context-aware chatbot seeded with current system state and recent events
  • Guided troubleshooting workflows for rapid issue resolution
  • Natural language queries for system data and historical trends
  • Proactive recommendations based on detected patterns and anomalies

πŸ” Enterprise Security & Access Control

  • Firebase Authentication integration for secure user identity management
  • Role-based access control (operator/admin) with granular permissions
  • Firestore security rules enforcing data access policies
  • Comprehensive audit logging for compliance and traceability

πŸ“ˆ Advanced Data Management

  • Sanity checks filtering malformed or spurious readings
  • UTC timestamp normalization with timezone-aware reporting
  • Optimized indexing strategy balancing performance and cost
  • Configurable retention policies for long-term data archival

πŸ—οΈ System Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         IoT Hardware Layer (On-Site)                β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  Arduino/RPi Controller                       β”‚  β”‚
β”‚  β”‚  - Temp/Humidity/Gas Sensors                  β”‚  β”‚
β”‚  β”‚  - Relay Controls (fans, HVAC, preservatives) β”‚  β”‚
β”‚  β”‚  - Solar Power + Battery Management           β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                     β”‚ HTTPS/JSON over WiFi/GSM
                     β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           Firebase Cloud Functions                  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚  Ingestion   β”‚  β”‚ Analytics   β”‚  β”‚  Alerts   β”‚ β”‚
β”‚  β”‚  Service     β”‚  β”‚ Service     β”‚  β”‚  Service  β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”˜ β”‚
β”‚         β”‚                  β”‚                β”‚       β”‚
β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β”‚
β”‚                            β–Ό                        β”‚
β”‚                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                 β”‚
β”‚                    β”‚   Firestore  β”‚                 β”‚
β”‚                    β”‚   Database   β”‚                 β”‚
β”‚                    β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜                 β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                            β”‚ Real-time Sync
                            β–Ό
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚   Web Dashboard     β”‚
                β”‚  - Live Monitoring  β”‚
                β”‚  - Analytics Views  β”‚
                β”‚  - AI Chatbot       β”‚
                β”‚  - Alert Management β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸš€ Getting Started

Hardware Setup

  1. Assemble the physical infrastructure

    • Install galvanized steel racks and FRP trays
    • Mount all HVAC equipment (fans, dehumidifier, humidifier, blowers)
    • Set up solar panels and battery system
  2. Wire the IoT controller

    • Connect all sensors to Arduino/RPi (temperature, humidity, methane)
    • Wire relay modules to control fans, HVAC, and preservation systems
    • Install contactors and surge protection
    • Configure WiFi/GSM connectivity
  3. Flash Arduino firmware

    • Open arduino/sensor_node/sensor_node.ino in Arduino IDE
    • Configure WiFi credentials and API endpoint
    • Upload to your Arduino board
  4. Test hardware systems

    • Verify all sensors are reading correctly
    • Test automated control responses (fan activation, etc.)
    • Confirm data transmission to cloud

Backend Setup

  1. Clone the repository
git clone https://github.com/yourusername/cropverse-firebase.git
cd cropverse-firebase
  1. Install dependencies
cd functions
pip install -r requirements.txt
  1. Configure Firebase
firebase login
firebase init
  1. Set environment variables
cp .env.example .env.yaml
# Edit .env.yaml with your Firebase credentials and API keys
  1. Deploy to Firebase
firebase deploy --only functions

Frontend Setup

  1. Navigate to public directory
cd public
  1. Configure Firebase Edit js/firebase-config.js with your Firebase project credentials:
const firebaseConfig = {
  apiKey: "YOUR_API_KEY",
  authDomain: "YOUR_AUTH_DOMAIN",
  projectId: "YOUR_PROJECT_ID",
  // ...
};
  1. Serve locally
firebase serve
  1. Deploy
firebase deploy --only hosting

Device Registration

  1. Register device in admin dashboard
    • Use the admin dashboard to register new devices
    • Note the device credentials for configuration
    • Configure threshold parameters for your crop type

πŸ§ͺ Testing & Development

Simulate Sensor Data

python scripts/simulate_arduino.py --count 100 --interval 5

Analyze Backend Health

python scripts/analyze_backend.py

Seed Test Data

python scripts/seed_firestore.py --dataset sample_farm

Run Tests

pytest tests/ --cov=functions

πŸ‘₯ Team

CropVerse is developed by a dedicated cross-functional team of six engineers and researchers:

Role Name Responsibilities
πŸ’» **Software Architect & Full-Stack Engineer ** Atharv Sabde End-to-end software development: Firebase cloud functions architecture, real-time analytics engine, RESTful API design, web dashboard development, AI chatbot integration, database schema design, authentication & security implementation, frontend–backend orchestration
⚑ Hardware Systems Engineer Vaidehi Musale IoT infrastructure design and deployment: sensor network architecture, Arduino/RPi controller programming, HVAC automation systems integration, relay control logic, power management (solar + battery), field deployment coordination, hardware–software interface protocols
πŸ”¬ Hardware Engineering & Research Specialist Bhumika Pise Sensor calibration and testing, environmental control system optimization, preservation technology research (eugenol, thymol, PCO), agricultural domain analysis, post-harvest storage methodologies, hardware component selection and procurement, prototype testing and validation
πŸ“‹ Project Coordination & Agricultural Research Rohit Rode Project management and strategic planning, stakeholder communication, agricultural domain research, farmer requirement analysis, market feasibility studies, documentation and presentation, compliance and regulatory research, team coordination and resource planning
πŸ”§ Systems Integration Engineer Rahul Mathe Hardware–software integration troubleshooting, system testing and quality assurance, research validation and experimentation, deployment assistance, cross-subsystem performance optimization, technical documentation, backup development support
βš™οΈ Hardware Operations Specialist Mayuri More Hardware assembly and installation support, IoT device configuration assistance, field testing and diagnostics, sensor maintenance protocols, equipment logistics coordination, hardware documentation, operational support for deployment activities

🀝 Contributing

We welcome contributions from the community! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Open a Pull Request
  • Firebase and Google Cloud Platform teams
  • Open-source community for invaluable tools and libraries
  • Agricultural experts who provided domain guidance

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors