Getting sensor data from the sensor module on the Raspberry Pi
In this chapter, we will learn how to handle the data acquired from the sensor device with Node-RED on the Raspberry Pi and publish the data to an MQTT broker.
For the sensor device, we will use the temperature/humidity sensor used in Chapter 5, Implementing Node-RED Locally. See each step in Chapter 5, Implementing Node-RED Locally, for details about connectivity and how to enable the sensor device on the Raspberry Pi.
Prepare to connect your temperature/humidity sensor to your Raspberry Pi. This is the edge device. You have already purchased and configured your edge device in Chapter 5, Implementing Node-RED Locally. Light sensors are not used in this chapter:
- Edge device: Raspberry Pi 3 (https://www.raspberrypi.org/)
- Sensor module: Grove Base HAT for Raspberry Pi, Grove Temperature and Humidity Sensor (SHT31) (https://www.seeedstudio.com/Grove-Base-Hat-for-Raspberry-Pi.html, https://www.seeedstudio...