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.
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)
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β 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 β
βββββββββββββββββββββββ
-
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
-
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
-
Flash Arduino firmware
- Open
arduino/sensor_node/sensor_node.inoin Arduino IDE - Configure WiFi credentials and API endpoint
- Upload to your Arduino board
- Open
-
Test hardware systems
- Verify all sensors are reading correctly
- Test automated control responses (fan activation, etc.)
- Confirm data transmission to cloud
- Clone the repository
git clone https://github.com/yourusername/cropverse-firebase.git
cd cropverse-firebase- Install dependencies
cd functions
pip install -r requirements.txt- Configure Firebase
firebase login
firebase init- Set environment variables
cp .env.example .env.yaml
# Edit .env.yaml with your Firebase credentials and API keys- Deploy to Firebase
firebase deploy --only functions- Navigate to public directory
cd public- Configure Firebase
Edit
js/firebase-config.jswith your Firebase project credentials:
const firebaseConfig = {
apiKey: "YOUR_API_KEY",
authDomain: "YOUR_AUTH_DOMAIN",
projectId: "YOUR_PROJECT_ID",
// ...
};- Serve locally
firebase serve- Deploy
firebase deploy --only hosting- 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
python scripts/simulate_arduino.py --count 100 --interval 5python scripts/analyze_backend.pypython scripts/seed_firestore.py --dataset sample_farmpytest tests/ --cov=functionsCropVerse 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 |
We welcome contributions from the community! Please follow these steps:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a Pull Request
- Firebase and Google Cloud Platform teams
- Open-source community for invaluable tools and libraries
- Agricultural experts who provided domain guidance