Source: https://mokxi.com/learn/path/build-greenhouse-controller
Updated: 2026-11-20

All paths

# Build a greenhouse controller

Build the controller that runs a greenhouse: climate and VPD, fans with hysteresis, safe watering, a photoperiod, schedules and a season log.

Arduino Uno R3 Free 6 lessons 5 h 3 chapters 1,685 XP Maker · Intermediate +150 XP

0 of 6 done

Start the course free Climate sensing Lesson plan for teachers

What you will build

## 3 projects, built step by step

6 lessons in 3 chapters, about 5 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### Fans and vents

Run a fan with hysteresis: on at 28 C, off only under 26 C, faster as it gets hotter, and on for damp air too.
Open it in the simulator

Chapter 2 project

### Lights

Run a grow light on a 16 hour photoperiod from a DS3231, with its state worked out from the clock so a power cut cannot leave it wrong.
Open it in the simulator

Chapter 3 project

### Project: a season log

The whole controller: climate, fan, scheduled watering and lights, an hourly log line, and a summary of every day.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## The air

Read the climate, and move air when it goes wrong.

Open 174 XP

### Climate sensing

Read a greenhouse's air with an SHT31 and turn temperature and humidity into the one number growers steer by: the vapor pressure deficit.

0 of 4 steps

Start What is in it

Project Locked 410 XP

### Fans and vents

Run a fan with hysteresis: on at 28 C, off only under 26 C, faster as it gets hotter, and on for damp air too.

0 of 5 steps

4 questions, graded as you go.

Chapter 2

## Water and light

A pump with limits, and a grow light on the clock.

Locked 205 XP

### Watering

Water from a soil probe through an active-low relay and a pump: start under 35 percent, stop at 50, never run longer than 10 seconds, and catch an empty reservoir.

0 of 5 steps

Project Locked 348 XP

### Lights

Run a grow light on a 16 hour photoperiod from a DS3231, with its state worked out from the clock so a power cut cannot leave it wrong.

0 of 4 steps

4 questions, graded as you go.

Chapter 3

## Run the season

Schedules from a table, then the whole house with a log.

Locked 174 XP

### Schedules

Water only in morning and evening windows from a schedule table, work out the next event from the clock, and keep the photoperiod going.

0 of 4 steps

Project Locked 374 XP

### Project: a season log

The whole controller: climate, fan, scheduled watering and lights, an hourly log line, and a summary of every day.

0 of 5 steps

3 questions, graded as you go.

Syllabus

## Every lesson in the course

All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### The air

- Climate sensing Read a greenhouse's air with an SHT31 and turn temperature and humidity into the one number growers steer by: the vapor pressure deficit.
- Fans and vents Run a fan with hysteresis: on at 28 C, off only under 26 C, faster as it gets hotter, and on for damp air too.

Chapter 2

### Water and light

- Watering Water from a soil probe through an active-low relay and a pump: start under 35 percent, stop at 50, never run longer than 10 seconds, and catch an empty reservoir.
- Lights Run a grow light on a 16 hour photoperiod from a DS3231, with its state worked out from the clock so a power cut cannot leave it wrong.

Chapter 3

### Run the season

- Schedules Water only in morning and evening windows from a schedule table, work out the next event from the clock, and keep the photoperiod going.
- Project: a season log The whole controller: climate, fan, scheduled watering and lights, an hourly log line, and a summary of every day.

Keep going

## The next course on your track

Build a greenhouse controller is part of the maker track, a ladder of courses from zero to expert.

Next course

### Build a high-altitude balloon tracker

Build the payload that rides a balloon to 30 km: GPS in flight mode, pressure and cold, LoRa tracking, a flight log, a cutdown and a whole simulated flight.
Open the next course

Track

### Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.
See every course on the track

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a greenhouse controller

Is Build a greenhouse controller free?

Yes. All 6 lessons of Build a greenhouse controller are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a greenhouse controller take?

About 5 hours: 6 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Fans and vents, Lights and Project: a season log.

Where do I start?

With "Climate sensing", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
