Friday, December 4, 2026

How to Install Node-RED on Raspberry Pi OS (2026: What Changed Since NOOBS and Raspbian, and the State of DHT11)

This post shows how to install Node-RED on a Raspberry Pi so you can build its behaviour from a browser. My 2019 post assumed NOOBS and Raspbian, and neither is used any more. Here is how to install Node-RED on current Raspberry Pi OS, plus what you should know before using a DHT11 temperature and humidity sensor.

Illustration of a workbench with a Raspberry Pi and a laptop

What you'll learn

  • What has changed since the 2019 procedure (NOOBS, Raspbian, the default user, how Node-RED is installed)
  • How to install Node-RED on current Raspberry Pi OS and start it automatically
  • The current state of using a DHT11 / DHT22 with Node-RED

What changed since 2019

Item 2019 post Now
Installing the OS Install Raspbian from NOOBS NOOBS is no longer supported, and its repository became read-only in February 2023. Write the card with Raspberry Pi Imager
OS name Raspbian Renamed Raspberry Pi OS in May 2020
Login user Default user pi (password raspberry) The default pi user was removed in April 2022. Create a user in Imager or on first boot
Wi-Fi and SSH Put wpa_supplicant.conf and ssh in boot Set them in Imager (separate post)
Installing Node-RED Script from node-red/raspbian-deb-package Script from node-red/linux-installers

The 2019 post is still available: "Setting Up Raspbian + Node-RED on Raspberry Pi with NOOBS, and Reading DHT11 Temperature Sensor".

What you need

Steps

The steps below come from the official Raspberry Pi and Node-RED documentation.

1. Write Raspberry Pi OS and connect over SSH

Write Raspberry Pi OS with Raspberry Pi Imager. If you set a username and password, Wi-Fi and SSH while writing the card, you can carry on without a monitor. I covered the steps in "How to Set Up a Raspberry Pi Headless with Wi-Fi and SSH (2026, Raspberry Pi Imager 2.0)". There is no default pi user any more, so log in with the user you created here.

2. Install Node-RED

If you plan to install extra nodes, install the build packages first.

sudo apt install build-essential git curl

Install Node-RED with the official script.

bash <(curl -sL https://github.com/node-red/linux-installers/releases/latest/download/install-update-nodered-deb)

According to the official documentation, the script:

  • Removes the existing version of Node-RED if present
  • Checks that Node.js is at least v20 if it is installed, and otherwise installs the Node.js v22 LTS release
  • Installs the latest Node-RED and lets you choose whether to install the Raspberry Pi-specific nodes
  • Sets Node-RED up to run as a service

Add --help to the end of the command to see the options the script accepts. The official documentation also notes that there are no 32-bit builds from Node.js v24 onwards. If you use an older model or a 32-bit OS, check the official documentation.

3. Start it and enable autostart

The script installs commands to start and stop the service.

node-red-start
node-red-stop
node-red-log

To start Node-RED automatically at boot, run:

sudo systemctl enable nodered.service

4. Open the editor

Open this URL in a browser on your computer to get the Node-RED editor.

http://<hostname>:1880

If the hostname doesn't work, run hostname -I on the Raspberry Pi to get its IP address. The official documentation explains how to secure the editor in "Securing Node-RED". If you open it up to other devices, secure it following that page.

The current state of DHT11 / DHT22 with Node-RED

In the 2019 post I read the DHT11 with a Node-RED node. Here is where things stand now. I have not been able to confirm a procedure that works on a current setup.

  • The commonly used node, node-red-contrib-dht-sensor, was last updated more than eight years ago (1.0.4) according to the Node-RED library. It needs the BCM2835 library installed separately and requires running your flow with superuser access. Raspberry Pi 5 support isn't mentioned.
  • For reading the sensor from Python there is Adafruit's library (adafruit-circuitpython-dht), but its README lists as a known issue that it "may or may not work in Linux 64-bit platforms". It also says reads can fail and should be retried after at least 2 seconds. And from Raspberry Pi OS Bookworm onwards, you need a virtual environment (venv) to install libraries with pip.
  • In "Modern Replacements for DHT11 and DHT22 Sensors", Adafruit says the DHT11/22 are no longer good choices and suggests I2C sensors such as the AHT20 instead.

If you're starting to measure temperature and humidity now, an I2C sensor is the safer choice, even if you already have a DHT11. If you keep using a DHT11, first check that the node or library supports your Raspberry Pi model and OS (including whether it's 64-bit).

Note: this post summarises the official Raspberry Pi and Node-RED documentation and Adafruit's material as of December 2026. I haven't run through every step end to end on my own hardware. Steps may change with software updates.

Summary

NOOBS and Raspbian are things of the past; today you write Raspberry Pi OS with Raspberry Pi Imager. There is no default pi user either, so create one when writing the card. Install Node-RED with the official node-red/linux-installers script, enable autostart with sudo systemctl enable nodered.service, and open the editor at http://<hostname>:1880. The node that used to be the standard way to read a DHT11 in Node-RED hasn't been updated in years, so check whether it works on your setup before relying on it.

If this post helped, share it on X (Twitter) — it means a lot.

App by the author of this blog

I made an iOS reading management app called My Bookstore. Simple bookshelf management — give it a try.

View on App Store →

Related posts

References

This post is part of an experiment in automated updates using Claude Code.

No comments:

Post a Comment