Real-Time Monitoring
Monitor your cannabis grow environment in real-time with comprehensive sensor data collection, visualization, and alerting.
Overview
The monitoring system provides real-time and historical tracking of all environmental parameters critical to cannabis cultivation. Data is collected from IoT sensors via MQTT, stored in MongoDB, and displayed in real-time on the frontend dashboard via WebSocket connections.
Environmental Sensors
Comprehensive sensor support for all critical environmental parameters.
Temperature Monitoring
DHT22/DHT11 Sensors
High-accuracy temperature and humidity sensors connected to ESP32/ESP8266 devices.
- DHT22 Specifications: Temperature range -40°C to 80°C, accuracy ±0.5°C, humidity 0-100% RH, accuracy ±1% RH
- DHT11 Specifications: Temperature range 0°C to 50°C, accuracy ±2°C, humidity 20-90% RH, accuracy ±5% RH
- Sampling Rate: DHT22: 0.5 Hz (one reading per 2 seconds), DHT11: 1 Hz (one reading per second)
- Real-Time Updates: Readings published to MQTT every 2-10 seconds
- Historical Tracking: All readings stored in MongoDB with timestamps for trend analysis
- Optimal Ranges: Vegetative: 70-85°F, Flowering: 65-80°F, Drying: 60-70°F, Curing: 60-65°F
- Alert Thresholds: Configurable alerts for temperature too high (>85°F) or too low (<65°F)
Humidity Monitoring
- Relative humidity (RH) tracking: 0-100%
- Accuracy: ±1% RH (DHT22) or ±5% RH (DHT11)
- Critical for preventing mold and optimizing growth
- Automated humidifier/dehumidifier control
pH Monitoring
- pH level tracking for nutrient solutions
- Optimal range: 6.0-7.0 for most cannabis strains
- Automated pH adjustment with dosing systems
- Historical pH trends and analysis
EC (Electrical Conductivity) Monitoring
- Nutrient concentration measurement
- Optimal EC ranges vary by growth phase
- Automated nutrient dosing based on EC levels
- PPM (Parts Per Million) conversion support
COâ‚‚ Monitoring
- Carbon dioxide concentration tracking
- Optimal range: 1000-1500 ppm for enhanced growth
- Automated COâ‚‚ injection control
- Ventilation system integration
Light Intensity Monitoring
- PAR (Photosynthetically Active Radiation) tracking
- Light intensity in lux or PPFD
- Light cycle verification
- Integration with light control automation
Soil Moisture Monitoring
Analog Soil Moisture Sensors
Analog sensors connected to ESP32 ADC pins for precise soil moisture measurement.
- ADC Resolution: 12-bit (0-4095 values) for high precision
- Calibration: Dry calibration (~4095) and wet calibration (~1500) for accurate percentage conversion
- Moisture Levels: Percentage-based (0-100%) for easy interpretation
- Optimal Ranges: Vegetative: 40-60%, Flowering: 30-50%, varies by medium (soil vs coco)
- Automated Triggers: Automatic watering when moisture drops below threshold (e.g., <30%)
- Multi-Sensor Support: Multiple sensors per grow for different zones or plants
- Sensor Placement: Position at root zone depth for accurate readings
- Calibration Guide: See hardware documentation for detailed calibration steps
Data Collection
MQTT Integration
Sensor data is collected via MQTT protocol for reliable, scalable IoT communication.
- Topic-based message routing
- JSON payload format
- QoS levels for message reliability
- Automatic reconnection and error handling
Data Storage
- MongoDB time-series storage
- Indexed queries for fast retrieval
- Data retention policies
- Efficient storage of historical data
Real-Time Updates
- WebSocket connections for instant updates
- Push notifications to frontend
- No polling required
- Low latency data delivery
Data Visualization
Comprehensive charts and graphs for analyzing environmental data.
Real-Time Charts
- Temperature trends over time
- Humidity trends over time
- pH and EC level tracking
- COâ‚‚ concentration graphs
- Soil moisture levels
Historical Analysis
- Time range selection (hour, day, week, month)
- Multi-metric comparison charts
- Phase-based data filtering
- Statistical summaries (min, max, average)
Dashboard Widgets
- Current readings display
- Status indicators (normal, warning, critical)
- Device online/offline status
- Quick action buttons
Alert System
Stay informed with real-time alerts for critical environmental conditions.
Alert Types
Threshold Alerts
Alerts when environmental parameters exceed defined thresholds.
- Temperature too high/low
- Humidity out of range
- pH levels critical
- EC levels abnormal
Device Alerts
Notifications for device status and connectivity issues.
- Device offline
- Connection errors
- Sensor reading failures
- Battery low (for battery-powered devices)
Automation Alerts
Notifications when automation rules trigger actions.
Alert Severity Levels
- Info: Informational messages and status updates
- Warning: Conditions requiring attention
- Error: Critical issues requiring immediate action
- Critical: Emergency situations requiring urgent response
Alert Delivery
- In-app notifications
- WebSocket real-time alerts
- Email notifications (configurable)
- Visual indicators on dashboard
Data Filtering
Advanced filtering capabilities for analyzing specific data subsets.
- Filter by grow operation
- Filter by plant
- Filter by date range
- Filter by sensor device
- Filter by data source (sensor vs manual entry)
- Filter by plant phase
Statistics & Analytics
Comprehensive statistics for data-driven cultivation decisions.
Environmental Statistics
- Average, minimum, maximum values
- Data point counts
- Time in optimal range
- Standard deviation and variance
Phase Analytics
- Phase-specific environmental performance
- Phase duration tracking
- Optimal condition achievement rates
- Phase transition analysis
Data Export
Export monitoring data for external analysis and record-keeping.
- CSV export with date-stamped filenames
- JSON export for programmatic access
- Field selection for custom exports
- Date range selection
- Filtered data export
Best Practices
- Sensor Placement: Position sensors at plant canopy level for accurate readings
- Calibration: Regularly calibrate pH and EC meters
- Data Review: Review historical data weekly to identify trends
- Alert Thresholds: Set appropriate alert thresholds based on strain requirements
- Backup Data: Regularly export and backup monitoring data
- Device Maintenance: Clean and maintain sensors regularly
- Multiple Sensors: Use multiple sensors for large grow spaces