Chapter 10: Handling Sensor Data on the Raspberry Pi

In this chapter, we will learn how the processing of data from an edge device takes place in the Internet of Things (IoT) using Node-RED. We will not only cover data handling but also sending data to a server application from an edge device. For the device, I would like to use a Raspberry Pi. After completing the tutorials in this chapter, you will be able to handle sensor data acquired by edge devices.

Let's get started with the following four topics:

  • Getting sensor data from the sensor module on the Raspberry Pi
  • Learning the MQTT protocol and using an MQTT node
  • Connecting to an MQTT broker
  • Checking the status of data on localhost

Technical requirements

To progress in this chapter, you ...

Get Practical Node-RED Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.