Aeroponics with Raspberry Pi and humidity sensor

This instructable will teach you how to install an Aeroponics system that is controlled by Raspberry Pi. Aeroponics is plant-cultivation technique that has the roots hanging and is suspended in the air. Nutrient solution is sent to them in form of a fine mist. Aeroponics is compatible with any type of planting and can be used any time in the year. Using Aeroponics has its benefits by saving water and space and has a cleaner environment that reduces the need for pesticides. The system uses mist in a closed environment to provide the plats with elements in order to survive. In this instructable, the group will be using strawberry plants. We will add a GrovePi board, humidity sensor, and relay to control the fogger. This GrovePi and starter kit has the Grove

Step 1: Materials

Materials required for this instructable:

Step 2: Painting the Bucket

This step is necessary if your bucket is a bright color (white, yellow, etc). With water in the container, the light allowed will affect the plants, and too much light can lead to unnecessary organisms that can grow in the container.You will need to paint the bucket with black spray paint completely for the best results.

Step 3: Developing the Lid

In this step, you will be creating holes in the lid for the net pots. It is recommended that you create five holes with the hole saw that is just big enough to hold the net pots that are equally spaced out and marked. You will then use the hole saw to make the holes, and finally, clean the holes once you are done, and hot glue net pots in place. You may need to paint the lid again after this step.

Step 4: The Fogger

This step consists of connecting the fogger and putting it inside the bucket. You will need to use the transformer to control power flowing from the outlet to the device(AC to DC). You will need to connect one end of the power switch to an outlet and the to the fogger. Once it is plugged in the fog will provide water for the roots.(You will need water in the bucket in order for the fogger to work.)

In order to connect to the relay, you will have to open up the wire going from the transformer to the fogger. Do NOT open the wire going from the wall to the transformer. You should see a red wire and a white wire once you remove some of the outer coating. Cut either one of the wires, strip the ends, and put each end into the relay. You'll need a small screwdriver to put the wires into the relay. If you're already put your plants in the pots, you might want to save this step for last so that you can keep the fogger running so that the plants don't die while you're working on the rest of the project.Aeroponics with Raspberry Pi and humidity sensor schematic

Step 5: Programming

This step requires that you use Raspberry Pi, and the pictures provided shows how to program the Raspberry Pi. This will make the relay turn on/off when the humidity gets too low or too high.You need to attach the Grove Pi to the circuit board of the Raspberry Pi.

Turn off the Raspberry Pi and carefully place the GrovePi on top. Be careful not to bend any of the GPIO pins. Plug the relay into port D4 and the sensor into port D7.

The Python program is below:


import time
import grovepi

import sys

sensor=7 #sets the sensor port as D7

relay=4 #sets the relay port as D4

while True:


sys.stderr.write(“\x1b[2J\x1b[H”) #clears the screen

[temp, humidity]=grovepi.dht(sensor,1) #reads the sensor

print humidity #just a troubleshooting line

if humidity < 2450: #sets the threshold for turning fogger on or off, not calibrated

grovepi.digitalWrite(relay,1) #turn the fogger on


For more detail: Aeroponics with Raspberry Pi and humidity sensor

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top