• Professional advice
  • Order before 23.59 uur shipped today (choose Trunkrs)
  • Almost always available (+31 73 762 0 762)
  • Monday open late (odd weeks)

Your Garden in Top condition

Domotics Project | Your Garden in top condition

In this project we will use the Vegetronix Soil Moisture Sensor to measure the moisture content of the soil. As a controller, we use the FIBARO Homecenter 2, but of course this is also possible with, for example, the Homey. I can then use this measurement data in a script that determines how long a solenoid valve must be open and that the front garden is watered. The solenoid valve switch is switched by a Fibaro Relay module.

- Vegetronix soil moisture sensor
- Fibaro RGBW module
- 12 volt power supply

he Vegetronix sensor can be powered with 12v DC and provides an output signal from 0 volts (completely dry) to 3 volts (standing in a glass of water).
The RGBW module can also be powered with 12v DC and can process analog input signals from 0 to 10 volts.

Step 1: connecting the hardware

The sensor has three wires, which you connect as follows:
- Red wire: connect to + of the 12 volt supply
- Clear wire: connect to the - of the 12 volt supply
- Black wire: connect to the in1 connection of the RGBW module

Because both the sensor and the RGBW module work on 12V, I have connected both to the same (waterproof LED) transformer.

Met ons domotica tuinproject zorg je er voor dat de planten altijd vocht genoeg krijgen.

 Image: Connection diagram:

Note: The + for the module and the + for the sensor are connected together in the RGBW module. The same applies to the - for the module and the blank wire of the sensor. The + and - connection is very close together, make sure that no millimeter of bare wire is visible, to prevent short circuits!

Step 2: setting up the RGBW module
When loading the RGBW module in Home Center 2 you get the question for which you want to use it: as an RGBW controller or as an input / output module. Select the last option (input / output module).


In the Home Center 2 a master device is created with six slave devices.

Instellingen van de RGBW module. Nu kun je hem gebruiken om het vocht in tuin te meten

Choose the slave device that ends with .1, go to advanced settings, where you can adjust the settings for the input port in1. This allows you to set the scale for the measurement results (0 volts = 0%, 3 volts = 100%). You can also indicate what kind of sensor is. That changes the picture with the device.

Connect the black wire to in2, possibly you can rename the device to "Soil humidity" for example.


Step 3: testing

If you select the device that represents 1 in Home Center2, you will see a value (for example 68.21). That it is not 0 is probably due to the fact that the sensor is so sensitive that it also measures the air humidity. Keep your hand around the sensor and you will see the value rise realtime.

Initially, the measured value shot to 100% with virtually every change. I then adjusted the scale to 0-5.5 volts (see step 2). Now the sensor works a lot more accurately.


Of course you can also use the GreenIQ controller. It works out-of-the box with the vegetronix sensors.

Good luck!


With special thanks to our customer Reinier! ;)


4 Result(s)
4 Result(s)
Customer Service Phone

mon-fri: 10am-5pm and sat 10am-3pm


Gerstakker 16 5236 VG Empel Netherlands

Google maps