Back to Docs
Use Case Guide

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 to Sensors
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 to Relays
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 NameGPIOTypeModeDescription
Zone 1 Moisture34AnalogInputCapacitive soil moisture sensor (0-4095 ADC)
Zone 2 Moisture35AnalogInputSecond zone soil moisture sensor
Temperature4DHT22InputAir temperature and humidity
Water Pump2RelayOutputIrrigation pump control
Ventilation15RelayOutputVentilation fan control
Grow Light16RelayOutputSupplemental grow light (optional)

Automated Irrigation

Water your crops based on actual soil conditions, not arbitrary timers.

  1. 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.

  2. 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.

  3. 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.

  4. 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

Climate Automation Rules
// 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.

ConditionActionPriority
Temperature > 32°CVentilation fan ONNormal
Temperature > 40°CAll fans ON + Emergency alertCritical
Humidity > 75%Ventilation fan ONNormal
Humidity > 90%All fans ON + AlertHigh
Soil moisture < 1500Water 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.