STEP 1 / 6ESP + IOT

ESP8266 Multisensor Shield with Node-RED

431.ESP8266 Multisensor Shield with Node-RED You will learn how to integrate the ESP8266 Multisensor Shield for the Wemos D1 Mini board with Node-RED by following the instructions in this…

ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045
PROJECT#431
TRACKIoT
PARTS23
STAGES06
STEP 1 / 6 · Overview

Know the mission before touching a wire.

Understand what you are making, prepare the right tools, and make the workbench safe.

01

Project details

ESP8266 Multisensor Shield with Node-RED is a iot project. 431.ESP8266 Multisensor Shield with Node-RED You will learn how to integrate the ESP8266 Multisensor Shield for the Wemos D1 Mini board with Node-RED by following the instructions in this…

Source pages
1045-1050
Named parts
23
Build goal
Working, tested prototype
02

Tools you need

  • Digital multimeter
  • Wire stripper and side cutters
  • Soldering iron with a fine tip
  • Current-limited bench supply
  • Computer with a data-capable USB cable

Use eye protection, good lighting, and a clean insulated surface throughout the build.

03

Safety precautions

  • Disconnect every power source before changing a connection.
  • Check component polarity, pinout, and supply voltage twice.
  • Use a current limit for the first power-up.
  • This project may involve hazardous voltage. Work only with qualified supervision and proper isolation.
Ready to continue?
STEP 2 / 6 · Parts library

Gather, identify, and understand every part.

Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.

NAMED PROJECT INVENTORY23 PART LINES
PARTTYPEQTYREADY
MESP8266 Wemos D1 Mini - see Highest-Rated ESP8266 Wi-FiMODULE1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045MODULE LEARNING VIEW

ESP8266 Wemos D1 Mini - see Highest-Rated ESP8266 Wi-Fi

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It is the control centre and must use the documented board, pin map, supply, and logic level.

Buy / compare this part

Advantages

  • Reprogrammable and reusable
  • Large learning ecosystem
  • Complex behaviour remains changeable

Limitations

  • GPIO voltage and current are limited
  • Some pins affect boot or communication
  • Loads normally need a driver

Handling

  • Disconnect power before rewiring
  • Avoid static discharge
  • Never power motors, relays, or pumps directly from GPIO

Specifications to verify

  • Use the exact model, value, package, and rating listed for ESP8266 Wemos D1 Mini - see Highest-Rated ESP8266 Wi-Fi; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
PDevelopment BoardPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

Development Board

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Development Board; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Px 5mm LED, 1x 330 Ohm resistorPART1
What's this?Image, role, pros, cons, handling & specifications
Axial through-hole resistorPART LEARNING VIEW

x 5mm LED, 1x 330 Ohm resistor

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It presents the circuit result or acts on the physical world.

Buy / compare this part

Advantages

  • Makes system state visible
  • Can be tested separately
  • Supports clear troubleshooting

Limitations

  • Loads may exceed controller current
  • Polarity or driver direction can matter
  • Inductive loads create voltage spikes

Handling

  • Use the documented driver stage
  • Check polarity and load current
  • Add flyback protection for inductive loads

Specifications to verify

  • Use the exact model, value, package, and rating listed for x 5mm LED, 1x 330 Ohm resistor; similar-looking parts are not always interchangeable.
  • Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
Mx DS18B20 temperature sensor 1x mini-PIR motion sensor 1x lightMODULE1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045MODULE LEARNING VIEW

x DS18B20 temperature sensor 1x mini-PIR motion sensor 1x light

A sensor converts a physical condition into an electrical signal the circuit can measure.

What it does here

It provides project input as an analogue, digital, resistive, frequency, or calibrated signal.

Buy / compare this part

Advantages

  • Adds real-world awareness
  • Can usually be tested independently
  • Often supports calibration

Limitations

  • Readings can drift
  • Placement affects results
  • Some sensors need warm-up or calibration

Handling

  • Protect the sensing surface
  • Observe supply voltage and polarity
  • Keep signal leads away from noisy power wiring

Specifications to verify

  • Use the exact model, value, package, and rating listed for x DS18B20 temperature sensor 1x mini-PIR motion sensor 1x light; similar-looking parts are not always interchangeable.
  • Confirm supply range, output type, measurement range, accuracy, response time, and pin order.
Pdependent resistorPASSIVE1
What's this?Image, role, pros, cons, handling & specifications
Axial through-hole resistorPASSIVE LEARNING VIEW

dependent resistor

A passive component sets current, voltage, timing, filtering, or signal behaviour without adding gain.

What it does here

Its exact value and tolerance determine how the surrounding stage behaves.

Buy / compare this part

Advantages

  • Simple and dependable
  • Low cost
  • Easy to measure before installation

Limitations

  • A wrong value can stop or damage the circuit
  • Ratings must not be exceeded
  • Polarized parts require correct orientation

Handling

  • Measure unclear values
  • Observe capacitor polarity
  • Avoid overheating leads while soldering

Specifications to verify

  • Use the exact model, value, package, and rating listed for dependent resistor; similar-looking parts are not always interchangeable.
  • Confirm value, tolerance, power or voltage rating, polarity, and package size.
Px 10k Ohm resistor, 1x relay modulePART1
What's this?Image, role, pros, cons, handling & specifications
10kΩ axial through-hole resistorPART LEARNING VIEW

x 10k Ohm resistor, 1x relay module

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It presents the circuit result or acts on the physical world.

Buy / compare this part

Advantages

  • Makes system state visible
  • Can be tested separately
  • Supports clear troubleshooting

Limitations

  • Loads may exceed controller current
  • Polarity or driver direction can matter
  • Inductive loads create voltage spikes

Handling

  • Use the documented driver stage
  • Check polarity and load current
  • Add flyback protection for inductive loads

Specifications to verify

  • Use the exact model, value, package, and rating listed for x 10k Ohm resistor, 1x relay module; similar-looking parts are not always interchangeable.
  • Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
BBreadboard, A set of jumper wiresBUILD1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045BUILD LEARNING VIEW

Breadboard, A set of jumper wires

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Breadboard, A set of jumper wires; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
MGetting ready to use the Arduino SoftwareMODULE1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045MODULE LEARNING VIEW

Getting ready to use the Arduino Software

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It is the control centre and must use the documented board, pin map, supply, and logic level.

Buy / compare this part

Advantages

  • Reprogrammable and reusable
  • Large learning ecosystem
  • Complex behaviour remains changeable

Limitations

  • GPIO voltage and current are limited
  • Some pins affect boot or communication
  • Loads normally need a driver

Handling

  • Disconnect power before rewiring
  • Avoid static discharge
  • Never power motors, relays, or pumps directly from GPIO

Specifications to verify

  • Use the exact model, value, package, and rating listed for Getting ready to use the Arduino Software; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
Muse the Arduino Integrated Development Environment (IDE) to upload codeMODULE1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045MODULE LEARNING VIEW

use the Arduino Integrated Development Environment (IDE) to upload code

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It is the control centre and must use the documented board, pin map, supply, and logic level.

Buy / compare this part

Advantages

  • Reprogrammable and reusable
  • Large learning ecosystem
  • Complex behaviour remains changeable

Limitations

  • GPIO voltage and current are limited
  • Some pins affect boot or communication
  • Loads normally need a driver

Handling

  • Disconnect power before rewiring
  • Avoid static discharge
  • Never power motors, relays, or pumps directly from GPIO

Specifications to verify

  • Use the exact model, value, package, and rating listed for use the Arduino Integrated Development Environment (IDE) to upload code; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
PInstalling the PubSubClient LibraryPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

Installing the PubSubClient Library

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Installing the PubSubClient Library; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PA client for performing straightforward publish/subscribe messagingPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

A client for performing straightforward publish/subscribe messaging

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for A client for performing straightforward publish/subscribe messaging; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PLibrary for PubSubClient clients. Within your Downloads folderPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

Library for PubSubClient clients. Within your Downloads folder

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Library for PubSubClient clients. Within your Downloads folder; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Pthere should be a folder labelled ".zip."PART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

there should be a folder labelled ".zip."

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for there should be a folder labelled ".zip."; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PAfter unzipping the.zip folder, you should see a folder labelledPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

After unzipping the.zip folder, you should see a folder labelled

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for After unzipping the.zip folder, you should see a folder labelled; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PReplace the name pubsubclient-master with pubsubclient in thePART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

Replace the name pubsubclient-master with pubsubclient in the

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Replace the name pubsubclient-master with pubsubclient in the; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PTransfer the pubsubclient folder to the libraries folder that wasPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

Transfer the pubsubclient folder to the libraries folder that was

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Transfer the pubsubclient folder to the libraries folder that was; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
BThere is a OneWire library. Within your Downloads folder, youBUILD1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045BUILD LEARNING VIEW

There is a OneWire library. Within your Downloads folder, you

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for There is a OneWire library. Within your Downloads folder, you; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
B"OneWire-master."BUILD1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045BUILD LEARNING VIEW

"OneWire-master."

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for "OneWire-master."; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PTemperature library located in DallasPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

Temperature library located in Dallas

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Temperature library located in Dallas; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PDallasTemperature library. Within your Downloads folder, you oughtPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

DallasTemperature library. Within your Downloads folder, you ought

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for DallasTemperature library. Within your Downloads folder, you ought; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
PChange the name of the folder you're working in toPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

Change the name of the folder you're working in to

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Change the name of the folder you're working in to; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
MDallasTemperature from Arduino-Temperature-Control-LibraryMODULE1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045MODULE LEARNING VIEW

DallasTemperature from Arduino-Temperature-Control-Library

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It is the control centre and must use the documented board, pin map, supply, and logic level.

Buy / compare this part

Advantages

  • Reprogrammable and reusable
  • Large learning ecosystem
  • Complex behaviour remains changeable

Limitations

  • GPIO voltage and current are limited
  • Some pins affect boot or communication
  • Loads normally need a driver

Handling

  • Disconnect power before rewiring
  • Avoid static discharge
  • Never power motors, relays, or pumps directly from GPIO

Specifications to verify

  • Use the exact model, value, package, and rating listed for DallasTemperature from Arduino-Temperature-Control-Library; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
PCopy the DallasTemperature folder and paste it into the librariesPART1
What's this?Image, role, pros, cons, handling & specifications
ESP8266 Multisensor Shield with Node-RED - source illustration from page 1045PART LEARNING VIEW

Copy the DallasTemperature folder and paste it into the libraries

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for Copy the DallasTemperature folder and paste it into the libraries; similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
Ready to continue?
STEP 4 / 6 · Source code

Confirm the hardware-only control path.

This project does not include firmware in the source. The circuit itself provides the required behaviour.

01

How to connect

  1. Match every controller label to the circuit view and source pin map.
  2. Join grounds before signal wires when separate low-voltage supplies are used.
  3. Keep motors, relays, pumps, and other loads on a suitable driver and external supply.

Common mistakes

Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.

Troubleshoot

Disconnect loads, continuity-test one path at a time, then test with a current limit.

02

Software preparation

No IDE, board package, library, or firmware upload is required for this project.

If you add a programmable controller as an extension, document its pin map separately.

03

How to upload code

The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.

Ready to continue?
STEP 5 / 6 · Build

Assemble, deploy, test, and troubleshoot.

Use the complete source notes in build order, then pass the final checks before calling the project finished.

ASSEMBLY

Build in functional stages

  • Power and regulation
  • Controller or processing stage
  • Inputs and sensors
  • Outputs and loads
  • Enclosure and strain relief
TEST

Power up safely

  • Inspect unpowered continuity first
  • Apply the lowest safe current limit
  • Measure supply rails before signals
  • Add one load at a time
  • Record expected and actual results
TROUBLESHOOT

Work from simple to complex

  • Confirm power, ground, polarity, and orientation
  • Compare each pin with the source
  • Test inputs separately from outputs
  • Replace only one variable at a time
  • Power off before every correction
PROJECT-SPECIFIC BUILD NOTES

Follow the documented instructions.

These notes come from this project's source and remain in their original order.

01

Project overview

Project build note

431.ESP8266 Multisensor Shield with Node-RED You will learn how to integrate the ESP8266 Multisensor Shield for the Wemos D1 Mini board with Node-RED by following the instructions in this project. An MQTT connection will be established between the ESP8266 Multisensor Shield and a Raspberry Pi that is running Node-RED and the Mosquito MQTT broker.

02

Project Overview

Project build note

The Multisensor shield includes a temperature sensor, a motion sensor, a light-dependent resistor (LDR), and a three-pin socket that can be used to connect any output, such as a relay module, for instance. On the same Raspberry Pi that is running Node-RED, we will use the Mosquito broker that has been installed. The broker is in charge of receiving all messages, sorting through those messages to determine who might be interested in them, and then publishing those messages to all of the clients who have subscribed to receive them. Read "What is MQTT and How It Works" if you're interested in finding out more about MQTT. The application known as Node-RED will publish messages (such as "on" or "off") in the topic known as esp8266/output. That particular topic has been subscribed to by the ESP8266. Therefore, it turns the output on or off based on whether it receives the message that contains "on" or "off." The temperature is published on the esp8266/temperature topic, and the luminosity is published on the esp8266/ldr topic. The Node-RED application has been set to receive updates regarding those topics. Therefore, it obtains

readings of the temperature and luminosity, which are shown on a chart and a gauge respectively. In the following picture, you can see an overview of what we'll do in this project. Node-RED has indicated that it is interested in the topic esp8266/motion. When motion is detected, the ESP8266 sends out a publication on that subject. In the text widget of the Node-RED Dashboard, the message "MOTION DETECTED!" appears whenever motion is detected and remains there for ten seconds.

Circuit Diagram;

03

Part required

Project build note

ESP8266 Wemos D1 Mini - see Highest-Rated ESP8266 Wi-Fi Development Board 1x 5mm LED, 1x 330 Ohm resistor 1x DS18B20 temperature sensor 1x mini-PIR motion sensor 1x light dependent resistor 2x 10k Ohm resistor, 1x relay module Breadboard, A set of jumper wires Getting ready to use the Arduino Software

We will use the Arduino IDE to write the code for the ESP8266. In order to use the Arduino Integrated Development Environment (IDE) to upload code to your ESP8266, you will need to install the ESP8266 add-on (How to Install the ESP8266 Board in Arduino IDE). To be able to run the code on the ESP8266, you will additionally need to install three additional libraries. Installing the PubSubClient Library A client for performing straightforward publish/subscribe messaging with a server that supports the MQTT protocol is made available by the PubSubClient library (basically allows your ESP8266 to talk with Node-RED). Library for PubSubClient clients. Within your Downloads folder, there should be a folder labelled ".zip." After unzipping the.zip folder, you should see a folder labelled pubsubclient-master. Replace the name pubsubclient-master with pubsubclient in the name of your folder. Transfer the pubsubclient folder to the libraries folder that was installed with your Arduino IDE. There is a OneWire library. Within your Downloads folder, you ought to have a.zip folder. After unzipping the.zip folder, you should see a folder labelled "OneWire-master." Change the name of your folder to OneWire from OneWire-master. Copy the OneWire folder and paste it into the libraries folder that was installed with your Arduino IDE. Temperature library located in Dallas

DallasTemperature library. Within your Downloads folder, you ought to have a.zip folder. After unzipping the.zip folder, you should be able to access the Arduino-Temperature-Control-Library-master folder. Change the name of the folder you're working in to DallasTemperature from Arduino-Temperature-Control-Library- master. Copy the DallasTemperature folder and paste it into the libraries folder that was installed with your Arduino IDE. At long last, reopen your Arduino IDE and begin the process of uploading code. Paste the code below into the Arduino Software Installer. The areas of the code that require modifications have detailed comments attached to them. You will need to make changes to the code in order to include your personal SSID, password, and MQTT Broker IP Address (Raspberry Pi IP Address).

Ready to continue?
PROJECT ACHIEVED

You built ESP8266 Multisensor Shield with Node-RED.

You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.

Control Sonoff Basic Switch with ESP Easy Firmware and Node- RED project thumbnail featuring Smart Switch by Sonoff with Wi-Fi, FTDI Programmer, Raspberry Pi Power Supply (Raspberry Pi) (5V 2.5A)
NEXT IOT ADVENTURE

Control Sonoff Basic Switch with ESP Easy Firmware and Node- RED

Ready to reuse what you learned in another project from the same track?

Start this project
Browse all 500 projects