A Node-RED grove capacitive moisture sensor node connected to a Grove Base HAT for Raspberry Pi.

Usage no npm install needed!

<script type="module">
  import nodeRedContribGroveCapacitiveMoistureSensor from '';


This is a Node-RED node to get readings from the Grove Capacitive Moisture Sensor( connected to the Grove Base Hat for Raspberry Pi (

To get it working you have to install it in Node-RED at least ;-)

After this realize the new node "grove-capacitive-moisture-sensor" in the group "grove". Drop it on your flow and add a trigger to its input and connect a debug node afterwards. Happily watch the actualy measured values of the sensor in a nice way.

The rest is up to you!

The included javascript handles the communication between Node-RED and the python script and hands over the msg.payload.

January 2021