IoT-Enabled Smart Greenhouse System Powered by ESP32

Figure: 3D Model Isometric View in SketchUp

Project Overview

This Smart Greenhouse System, developed as a school engineering project, automates plant care by monitoring and adjusting environmental conditions like temperature, humidity, soil moisture, and light. The system combines IoT and automation to simplify indoor farming.

In this website, we will guide you through building your own smart greenhouse system, from selecting the right sensors and components to coding and integrating automation features. Whether you're a beginner or an experienced enthusiast, our step-by-step tutorials will help you create a sustainable and efficient greenhouse setup tailored to your needs.

Throughout the development process, we encountered several challenges:

1. Key Components

Component Purpose
ESP32 BoardCentral microcontroller for data processing
DHT22 SensorMeasures temperature & humidity
Soil Moisture SensorDetects dry/wet soil conditions
PhotoresistorMonitors ambient light levels
Submersible PumpAutomated irrigation
2pcs - 5V Mini FansTemperature & humidity control
4-Channel Relay ModuleControls multiple electrical components
LED Grow LightsProvides artificial light for plant growth
Lithium BatteriesPowers the system for off-grid use
Jumper WiresConnects electronic components
Blynk IoT PlatformRemote monitoring & control

2. System Architecture

System Diagram

The ESP32 processes sensor data to control actuators, with real-time updates sent to the Blynk cloud for remote access.

3. Automation Logic

4. Programming Core

// Sensor Reading Example
    void readSensors() {
    humidity = dht.readHumidity();
    temperature = dht.readTemperature();
    moisture = analogRead(SOIL_SENSOR);
            
    if (moisture < 300) activatePump();
    if (temperature > 28) activateFan1();
    }

5. Remote Monitoring Interface

Using Blynk IoT, we created a dashboard showing real-time sensor data and manual controls:

6. Source Code

You can download the source code and instruction from the following links:

7. Future Improvements