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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.