APC

Start using MQTT for sensor logs

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

You’re reading a preview, subscribe to read more.

More from APC

APC5 min read
Skype vs Teams
SKYPE | PRICE Free WEB www.skype.com TEAMS | PRICE Free/$9 per month WEB www.microsoft.com Two apps that do the same thing, owned by the same company, that run on the same platforms and are even interoperable. It may seem strange that one hasn’t bee
APC3 min read
Gadgets
$TBA | sony.net The metaverse is coming, they keep saying, so one had better be ready. Even if the three-dimensional future doesn’t pan out in quite the same way as Mark Zuckerberg hopes it might, increased creativity in the 3D space isn’t going anyw
APC2 min read
Reviews
35 Asus Zenbook 14 OLED 36 Acer Helios Neo 18 37 Samsung 990 Evo 38 MSI MPG 321URX QD-OLED 39 Samsung Odyssey G9 OLED 40 Benq XL2546X 41 Thermaltake Tower 300 Micro Case 42 Sapphire 7600 XT 43 Sapphire Nitro+ RX 7900 GRE 45 XP Pen Artist Pro 16 44 Wa

Related