YOU’LL NEED
• Pico W
• Breadboard
• DHT11 sensor
• 3x male-to-male jumper wires
• Network
• Code: tinyurl.com/ APC531mqtt
The Internet of Things (IoT) is hard, right? Wrong. It is easy thanks to MQTT and Node-RED. For this tutorial, we are building a simple Raspberry Pi Pico W-powered sensor that sends data to a Pi-powered dashboard running on Node-RED. The protocol that we’re using is called MQTT and there are more details in the boxout (opposite page).
There is only one sensor connected to the Pico W. This is a common DHT11 temperature and humidity sensor, which can be picked up cheaply and is often bundled in electronics kits. The DHT11 has only three connections to the Pico W: 3V, Data and GND (red, yellow and black wires in