Four ready-to-flash sketches that run a small greenhouse on one Uno: a replacement commercial controller starts around 180 USD and still needs its own sensors.
arduino:avr:uno
Water only when the probe reads dry, with a hard daily cap so a stuck probe cannot flood the bed.
Reads a resistive or capacitive probe on A0 and drives a relay on D7. The daily cap is the safety device most tutorials leave out.
| Pin | Mode | Connect to |
|---|---|---|
A0 | INPUT | Soil moisture probe signal |
7 | OUTPUT | Relay IN for the pump |
| Name | Value | Unit |
|---|---|---|
DRY_THRESHOLD | 620 | raw ADC |
PUMP_SECONDS | 20 | s |
MAX_RUNS_PER_DAY | 6 | runs |
Ramp a 12 V fan with PWM from a 10k NTC thermistor instead of switching it fully on and off.
Uses the Steinhart-Hart approximation on a voltage divider at A1 and writes PWM to D9. Hysteresis keeps the fan from chattering at the setpoint.
| Pin | Mode | Connect to |
|---|---|---|
A1 | INPUT | 10k NTC divider midpoint |
9 | OUTPUT | MOSFET gate for the fan |
| Name | Value | Unit |
|---|---|---|
TARGET_C | 26 | C |
FULL_SPEED_C | 33 | C |
Open and close a linear actuator on a daily schedule using millis, with an end-stop timeout so the motor never stalls.
Drives an H-bridge on D4 and D5. The timeout is what protects a cheap actuator when a limit switch fails.
| Pin | Mode | Connect to |
|---|---|---|
4 | OUTPUT | H-bridge IN1 (open) |
5 | OUTPUT | H-bridge IN2 (close) |
| Name | Value | Unit |
|---|---|---|
OPEN_AFTER_MIN | 480 | min from power-on |
TRAVEL_SECONDS | 18 | s |
Latch an alarm when the tank float opens, so a night-time dry run is still visible in the morning.
Float switch on D2 with INPUT_PULLUP and a buzzer on D8. The latch is the point: a momentary alarm you slept through tells you nothing.
| Pin | Mode | Connect to |
|---|---|---|
2 | INPUT_PULLUP | Tank float switch |
8 | OUTPUT | Buzzer or lamp |
| Name | Value | Unit |
|---|---|---|
DEBOUNCE_MS | 400 | ms |
Four ready-to-flash sketches that run a small greenhouse on one Uno: a replacement commercial controller starts around 180 USD and still needs its own sensors.
This page is the free working part. The full version is sent to your inbox.
A packaged greenhouse controller with the same four functions sells for 180-320 USD, sensors excluded.
Send it to meNeed more than this one? ReadyStack Pass opens all 679 files and 561 full versions — $29/month or $199/year. See the Pass →
Four ready-to-flash sketches that run a small greenhouse on one Uno: a replacement commercial controller starts around 180 USD and still needs its own
The preview on this page is free.
1. Read below what is included. 2. Open the parts you need directly on this page. 3. A question? Use the question box at the bottom of the page.
One question, answered by the person who built it. Your email only if you want the answer sent.
For a team or company: for an invoice with your company details, a quote or several licences, write to [email protected].
PHP PDF library for EU VAT invoices — Art. 226 checkerCheck one EU invoice against 15 Art. 226 VAT Directive checks in your browser: missing fields, reverse-charge wording in 6 languages, VAT…FreeFull version $60
Freelance Portfolio TemplateEvery commission enquiry - brief, budget band, usage rights and deadline - is stored in your own site database instead of a form host: 8…FreeFull version $129
Proxmox Terraform provider — map dependencies to replacement linesThis browser tool maps VMware vSphere dependencies in Terraform, Packer, and Ansible files to Proxmox VE replacement lines.FreeFull version $29
Python 3.10 End of Life — find pins and show the fixThis tool finds Python 3.10 pins in project and cloud configuration files and shows the dated end-of-life fact and a Python 3.13 fix.FreeFull version $29
Radio equipment Declaration check — check your declaration freeThis browser tool audits an EU Declaration of Conformity for radio equipment against Delegated Regulation (EU) 2022/30 and EN 18031:2024…FreeFull version $29Runtime EOL and Deploy-Block Audit for Docker, CI and AWS LambdaFinds end-of-life runtimes in Docker, CI and AWS Lambda – node:20, python3.9, ubuntu-22.04, nodejs20.x – and prints the date each one stops…FreeFull version $29ReadyStack
Calculators, templates and deadlines for the rules that change every year — free in your browser.