Hardware

Greenhouse Controller Starter Stack

A complete component list for building a Raspberry Pi-based greenhouse climate controller with sensor nodes and relay outputs.

Overview

This product stack covers the core components needed to build a basic but functional greenhouse climate controller. The system uses a Raspberry Pi as the central gateway, Teensy 4.1 microcontrollers as sensor/actuator nodes, and MQTT for communication.

This is the same hardware stack used in our 30x96 high tunnel automation build. Every component listed has been field-tested.

Gateway

ComponentModelApprox. CostNotes
Single-board computerRaspberry Pi 5 (4GB)$608GB is overkill for this application
CaseArgon ONE V3$25Good thermal management, GPIO access
Power supplyOfficial RPi 27W USB-C$12Do not cheap out on PSU — brownouts cause SD corruption
StorageSamsung EVO Plus 64GB microSD$12A2 rated for better random I/O
USB WiFi adapterAlfa AWUS036ACM$30Only needed if built-in WiFi has range issues

Sensor Nodes

ComponentModelApprox. CostNotes
MicrocontrollerTeensy 4.1$32Excellent I/O, real-time capable, Arduino ecosystem
Ethernet moduleTeensy 4.1 Ethernet Kit$5Hardwired preferred over WiFi for reliability
Temp/humidity sensorSHT31 breakout$8I2C, ±0.3°C accuracy, reliable in humid environments
Radiation shield3D-printed Stevenson screen$3Required for accurate greenhouse temperature readings
EnclosureIP65 junction box (150x110x70mm)$8Size for your specific node configuration
PowerMean Well HDR-15-5 DIN rail PSU$125V/2.4A, reliable for 24/7 operation

Actuator Control

ComponentModelApprox. CostNotes
Relay boardSainSmart 8-channel with opto-isolation$185V logic, rated for 10A/250VAC per channel
Solenoid valveU.S. Solid 3/4” 12V normally closed$15Brass body, rated for water, needs external 12V PSU
ContactorPackard C240B 2-pole 40A$20For switching fan motors — do not switch motors directly with relays
Wiring18 AWG stranded THHN (multi-color)$25/rollUse different colors for signal, power, and ground
Terminal blocksDIN rail terminal blocks (20-pack)$15Spring-cage type for tool-free wiring

Communication

ComponentModelApprox. CostNotes
Network switchTP-Link TL-SG105 5-port gigabit$18Unmanaged, reliable, low power
Ethernet cableCat6 outdoor-rated (100ft)$20UV-resistant jacket for greenhouse runs
MQTT brokerMosquitto (software)FreeRuns on the Pi alongside the control service

Total Estimated Cost

$350–450 depending on number of nodes, cable runs, and enclosure choices. This does not include fans, motors, or other large equipment — those are site-specific.

Trade-Offs

  • Teensy vs. ESP32: Teensy is more expensive but offers better I/O performance and deterministic timing. ESP32 is cheaper and has built-in WiFi, but WiFi reliability in electrically noisy greenhouse environments is a real concern. We use Teensy with Ethernet for production systems.
  • microSD vs. SSD: An NVMe SSD via USB adapter eliminates SD card corruption risk but adds $40–60. Worth it for systems that log heavily.
  • DIN rail vs. free-form: DIN rail mounting adds upfront cost but dramatically improves serviceability. Worth it for any permanent installation.

Procurement Notes

  • Buy Teensy directly from PJRC — counterfeit boards exist on Amazon
  • SHT31 breakouts from Adafruit are consistently good quality; generic boards often have poor soldering
  • For solenoid valves, verify the voltage and normally-open/normally-closed configuration before ordering — returns on hydraulic components are painful