Create a Smart Garden Dashboard with Node-RED

Learn how to create a smart garden dashboard using Node-RED for real-time plant monitoring.

Posted by Tom Becker on May 07, 2025 · 6 mins read

Create a Smart Garden Dashboard with Node-RED

Introduction

Are you a gardening enthusiast who often finds themselves hovering over their plants, wishing there was a way to easily monitor their health? Or maybe you’re a tech-savvy DIYer looking for a fun project to merge your hobbies? If so, creating a Smart Garden Dashboard with Node-RED is a perfect way to marry technology with nature! With its user-friendly interface and powerful capabilities, Node-RED allows you to build a custom dashboard that provides real-time data about your plants and garden environment. Plus, connecting your setup to voice assistants like Alexa means you’ll have the power of hands-free control at your beck and call.

In this guide, we’ll walk you through the step-by-step setup for your Smart Garden Dashboard, troubleshoot common issues, and offer helpful tips to make the most of your gardening automation. Let’s dig in!

Step-by-step setup guide

Prerequisites

Before we start, ensure you have the following:

  1. A computer running Node-RED. You can get started by installing it on your Raspberry Pi, PC, or even using Docker.
  2. Sensor devices (like soil moisture sensors, temperature sensors, etc.) that you will use to monitor your garden.
  3. An Alexa-enabled device for voice control.
  4. Basic familiarity with Node-RED’s interface.

Step 1: Install Node-RED

First, if you haven’t done so already, install Node-RED. You can find detailed installation instructions there. Once installed, launch Node-RED by entering http://localhost:1880 into your browser.

Step 2: Add the Necessary Nodes

Next, install the nodes needed for your project. You’ll want to search for and install nodes for your specific sensors. Go to the menu (≡) > Manage palette > Install and look for nodes like node-red-contrib-garden-sensors.

For Alexa integration, you can use the node-red-contrib-alexa-home-skill package. You can install it similarly through the Manage palette menu.

Step 3: Create Your Dashboard

Now, let’s build the dashboard:

  1. Add a Dashboard Layout: Use the dashboard nodes to create a layout for viewing sensor data. Drag and drop ui_group and ui_text nodes onto your canvas.

  2. Display Sensor Data: Connect your sensor nodes to the dashboard nodes to show data like soil moisture and temperature. For example, if you have a soil moisture sensor, you can set a ui_gauge to visually represent the moisture levels.

  3. Control Commands: Use a ui_button node to allow users to send commands, like turning on a water pump through a relay when soil moisture is low.

To make your garden a truly smart garden, let’s connect Node-RED to your Alexa:

  1. Create a flow that listens for specific Alexa commands, such as “Is the garden dry?”
  2. Use the alexa node to link these commands to your dashboard outputs. This way, you can ask Alexa for updates on your plants, and she’ll respond based on the data provided by the nodes.

Step 5: Deploy Your Flow

Once you have everything set up, click the red “Deploy” button on the top right of the Node-RED interface. This action will save your flow and make it live!

Step 6: Monitor and Optimize

Keep an eye on your dashboard for a few days. Tweak the sensors and layout to suit your gardening needs. Besides, with Node-RED flow examples available here, you can explore templates created by the Node-RED community for additional features and enhancements.

Helpful tip block

  • Use Alerts: Set up notification nodes to alert you, via mobile or Alexa, if your sensors detect thresholds that require action (like low moisture).

  • Consider Weather Data: Integrating local weather conditions can provide insights into when to water your garden or when to expect frost.

  • Play with Automations: Don’t hesitate to create automations that trigger watering based on a specific moisture level or time of day.

Common issues & troubleshooting

  • Node-RED Not Responding: If your Node-RED interface doesn’t load, ensure it’s running by checking the command line where you initiated it. You might need to restart it if there were any errors during installation.

  • Alexa Not Recognizing Commands: Double-check your Alexa configuration. Ensure that you’ve appropriately set up your alexa nodes and that your Echo device is online. Sometimes, giving your Alexa device a restart helps too!

  • Sensor Data Not Updating: If you don’t see live updates on your dashboard, verify the connections between your sensor nodes and the dashboard nodes. Check that your sensor hardware is functioning correctly.

Final thoughts

Creating a Smart Garden Dashboard with Node-RED and integrating it with Alexa not only enhances your gardening experience but also makes it incredibly rewarding. With the power to monitor live data and control your garden using voice commands, you’ll feel like a tech-savvy green thumb in no time!

Remember, there’s always room for customization and improvement, so don’t shy away from experimenting with different nodes and features. Happy gardening, and enjoy your journey into the world of smart home automation!