Pi 4 Automated Greenhouse Controller Kit with Raspberry Pi 4 + DHT22
Control a Fully Automated Greenhouse with Raspberry Pi 4 — Sensor-Driven Python Scripts Included
Every part needed, pre-tested for compatibility, with an AI build companion trained on this exact project. Shipped from Bengaluru in 3-5 days.
Imagine a greenhouse that waters itself when soil dries, kicks in a heater during cold snaps, triggers fans if CO2 spikes, and adjusts grow lights based on ambient brightness—all without your input. This kit puts that capability into your hands with a Raspberry Pi 4 brain, two DHT22 sensors for temperature and humidity, dual soil moisture probes, an MH-Z19B CO2 sensor, and a BH1750 light sensor feeding a 4-channel relay module that manages real-world appliances. It’s a production-ready automation stack for agriculture, hydroponics, or research-grade plant growth experiments.
What You'll Build
You'll assemble and program a Raspberry Pi 4 controller that reads environmental data from six sensors, then autonomously switches fans, heaters, water pumps, and grow lights via a relay module. The Python code uses threshold logic: when soil moisture drops below a set point, the pump relay activates; when temperature or humidity drifts out of range, the corresponding actuator turns on. You'll leave with a working prototype you can deploy in a polyhouse or indoor grow tent.
What You'll Learn
- Calibrate and read DHT22, soil moisture, MH-Z19B CO2, and BH1750 sensors over GPIO and I2C on Raspberry Pi 4
- Program multi-channel relay logic in Python to control 230V appliances safely through optocoupler isolation
- Implement sensor threshold decision trees and schedule-based automation loops for agricultural control
- Structure a Pi-based automation project with logging, remote monitoring via SSH, and physical wiring best practices
Kit Contents
| Component | Quantity |
|---|---|
| Raspberry Pi 4 Model B 2GB | 1 |
| DHT22 Temperature & Humidity Sensor | 2 |
| Soil Moisture Sensor | 2 |
| MH-Z19B CO2 Sensor | 1 |
| 4-channel Relay Module | 1 |
| BH1750 Light Intensity Sensor | 1 |
| 4.7kΩ Resistors | 5 |
| 10kΩ Resistors | 5 |
| 40-pin GPIO Header | 1 |
| Male-to-Female Jumper Wires | 25 |
| MicroSD Card 32GB | 1 |
| USB-C Power Supply | 1 |
Why Buy This Kit Instead of Sourcing Parts Separately
| Factor | Sourcing Separately | Compoden Kit |
|---|---|---|
| Compatibility checks | You verify every part | Pre-tested as a system |
| Build support | Forums and scattered tutorials | AI companion trained on this exact project |
| Time to first working build | Days of debugging | Hours, with step-by-step guidance |
| Shipping coordination | Multiple sellers, multiple delays | One shipment from Bengaluru in 3-5 days |
Who This Kit Is For
This kit is built for B.Tech ECE, agricultural engineering, and mechatronics students who need a capstone project or Smart India Hackathon prototype. It’s also ideal for CBSE Class 12 students with prior Pi experience aiming for a national-level science fair entry, or for IIT/NIT/VIT/BITS research groups experimenting with controlled-environment agriculture. If you can already write basic Python loops and have wired a breadboard, you’re ready to take this on.
Built and Backed by Compoden
Every Compoden kit ships with an AI build companion trained on this exact project — accessible via a QR code on the box, with WhatsApp and email backup. We've spent 10 years building projects for makers, schools, and institutions across India. If a part fails because of a manufacturing defect, replace it free within 7 days.
What if I get stuck during the build?
Scan the QR code inside the box to access the AI companion trained on this specific greenhouse controller project. It can read your wiring photos and Python error messages. For persistent issues, WhatsApp us directly — our team of Pi engineers responds within 6 hours.
Can I use this kit with my polyhouse that already has 230VAC fans and pumps?
Yes. The 4-channel relay module handles up to 250VAC 10A per channel. You'll connect your existing appliances to the relay's NO and COM terminals. The kit includes clear wiring diagrams for safe integration — just ensure you follow electrical safety practices.
Does the kit include soil and plants for testing?
No, you'll use your own soil or hydroponic medium. The soil moisture sensors are pre-calibrated for typical Indian red and loamy soils. For testing, any planter with moist soil works perfectly; the Python scripts include a calibration routine you can run on first boot.
Is the code provided, or do I write everything from scratch?
The AI companion provides a complete, well-commented Python framework with sensor reading, threshold comparison, and relay control functions. You'll wire the hardware, then extend the logic — for example, adding SMS alerts or a dashboard. All libraries (Adafruit_DHT, smbus, RPi.GPIO) are pre-installed on the SD card image.
Pi 4 Python controls relay fan, heater, pump and grow light based on DHT22, soil and CO2 sensor thresholds.
What's in this kit
- Raspberry Pi 4 Model B 2GB
- DHT22 x2
- Soil Moisture Sensor x2
- MH-Z19B CO2
- 4-ch Relay Module
- BH1750
- 4.7kΩ Resistors x5
- 10kΩ Resistors x5
- 40-pin GPIO Header
- M-F Wires x25
- MicroSD Card 32GB
- USB-C PSU
Other projects you can build
Shipping Information
- Prepaid Orders: ₹75 for orders up to ₹999, FREE shipping above ₹999
- COD Orders: ₹125 shipping + ₹50 COD fee = ₹175 total
- Delivery Timeline: Dispatch in 1-2 days, delivery in 2-7 days depending on location
Returns & Warranty
- 7-Day Return: Manufacturing defects only (approval required)
- Warranty: 7 days from delivery
- Non-Returnable: Batteries, consumables, cut wires, clearance items