Agriculture & Greenhouses Setup Guide
Monitor soil moisture, temperature, and humidity in real time. Automate irrigation pumps and ventilation. Get alerts when conditions go out of range.
Overview
Precision agriculture doesn't require expensive proprietary systems. With Giantronic and ESP32 sensors, you can monitor and automate your greenhouse or farm for a fraction of the cost.
Deploy ESP32 nodes throughout your growing areas to monitor soil moisture, air temperature, and humidity in real time. Automate irrigation pumps based on actual soil conditions — not timers. Trigger ventilation fans when temperature or humidity spikes. And get instant alerts on your phone when conditions drift outside safe ranges, so you can intervene before crops are damaged.
Soil Monitoring
Real-time moisture readings per zone. Know exactly when and where to irrigate.
Climate Tracking
Temperature and humidity sensors throughout the greenhouse for precise environmental control.
Auto Irrigation
Water pumps triggered by actual soil conditions, not arbitrary schedules.
Instant Alerts
Get notified immediately when moisture drops, temperature spikes, or humidity exceeds limits.
Hardware You Need
Affordable, widely available components for monitoring and automation.
ESP32 (Weatherproof)
One per growing zone. Use IP65-rated enclosures or weatherproof boxes to protect from moisture and dust.
Capacitive Soil Moisture Sensor
CAPACITIVE version (not resistive) for long life. Reads soil moisture via ADC. ~$3 each.
DHT22 Sensor
Combined temperature and humidity. One per zone. ~$3. Place inside enclosure with ventilation holes.
Water Pump + Relay
12V or 24V DC water pump with a relay module to switch it on/off. One pump per irrigation zone.
Ventilation Fan + Relay
12V DC fans or mains-powered exhaust fans with relay control. Triggered by temperature/humidity thresholds.
Solar Panel (Optional)
5V-12V solar panel with battery for remote zones without mains power. Keep ESP32 running 24/7.
Wiring Guide
Connect sensors and actuators to your ESP32 for each growing zone.
Sensor Wiring
ESP32 GPIO34 ──────→ Soil Moisture Sensor (ADC) ESP32 GPIO4 ──────→ DHT22 DATA (with 10kΩ pull-up) ESP32 GPIO35 ──────→ Light Sensor (optional, ADC) ESP32 3.3V ──────→ Sensor VCC ESP32 GND ──────→ Sensor GND
Actuator Wiring
ESP32 GPIO2 ──────→ Water Pump Relay IN1 ESP32 GPIO15 ──────→ Ventilation Fan Relay IN2 ESP32 GND ──────→ Relay GND ESP32 5V ──────→ Relay VCC
Waterproofing: Use conformal coating or silicone sealant on exposed connections. Place ESP32 and relay boards inside IP65 enclosures. Route sensor cables through sealed glands.
Pin Configuration
Configure each pin in Giantronic to match your zone's sensor and actuator setup.
| Pin Name | GPIO | Type | Mode | Description |
|---|---|---|---|---|
Zone 1 Moisture | 34 | Analog | Input | Capacitive soil moisture sensor (0-4095 ADC) |
Zone 2 Moisture | 35 | Analog | Input | Second zone soil moisture sensor |
Temperature | 4 | DHT22 | Input | Air temperature and humidity |
Water Pump | 2 | Relay | Output | Irrigation pump control |
Ventilation | 15 | Relay | Output | Ventilation fan control |
Grow Light | 16 | Relay | Output | Supplemental grow light (optional) |
Automated Irrigation
Water your crops based on actual soil conditions, not arbitrary timers.
-
Set Moisture Thresholds
Define "dry" (ADC < 1500), "optimal" (1500-2500), and "wet" (ADC > 2500) ranges for each zone based on your soil type and crops.
-
Create Irrigation Schedule
Set up Giantronic schedules to check moisture levels every 2 hours during daytime (6 AM - 8 PM). Skip nighttime checks to save power.
-
Configure Pump Trigger
When moisture drops below the "dry" threshold, Giantronic triggers the water pump relay for a controlled duration (e.g., 30 seconds), then rechecks the reading.
-
Add Safety Limits
Set maximum pump runtime (e.g., 5 minutes) and minimum off-time between cycles to prevent overwatering and pump damage.
Water savings: Sensor-based irrigation typically uses 30-50% less water compared to timer-based schedules, while keeping plants healthier.
Climate Control
Automate ventilation and environmental control based on real sensor data.
Temperature-Based Ventilation
// Turn ON ventilation fan when temperature exceeds 32°C IF "Temperature" > 32 THEN "Ventilation" = true // Turn OFF ventilation fan when temperature drops below 28°C IF "Temperature" < 28 THEN "Ventilation" = false // Emergency alert if temperature exceeds 40°C IF "Temperature" > 40 THEN ALERT "Critical temperature!"
Humidity Management
High humidity in greenhouses promotes fungal growth. Set Giantronic to trigger ventilation fans when humidity exceeds 75%, and turn on dehumidifiers or open vents automatically.
| Condition | Action | Priority |
|---|---|---|
| Temperature > 32°C | Ventilation fan ON | Normal |
| Temperature > 40°C | All fans ON + Emergency alert | Critical |
| Humidity > 75% | Ventilation fan ON | Normal |
| Humidity > 90% | All fans ON + Alert | High |
| Soil moisture < 1500 | Water pump ON (30 sec cycle) | Normal |
Alerts & Notifications
Get instant notifications when conditions require your attention.
Temperature Alerts
Alerts when temperature exceeds safe ranges for your crops. Configurable thresholds per zone.
Moisture Alerts
Get notified when soil moisture drops below the minimum threshold. Prevent crop stress before damage.
Device Offline
Alerts when a sensor node goes offline. Critical for remote greenhouses where connectivity issues can go unnoticed.
Pump Failures
Detect pump failures by monitoring moisture trends. If moisture doesn't increase after a pump cycle, alert immediately.
Notification channels: Giantronic sends alerts via email, push notifications to the Android app, and in-dashboard notifications. Configure preferences per alert type.
Next Steps
Set up your precision agriculture system today.
Full Documentation
Complete platform docs — device pairing, pin config, API reference.
Mobile App
Android app setup — monitor your farm from anywhere.
API Reference
REST API docs — integrate with weather services and farm management tools.