Using sensors with Raspberry boards Part 1: sending data to Kafka

Roberto Pozzi
6 min readAug 11, 2021

I have not been playing around with my Raspberry Pi for a while, then recently I had to deepen my knowledge of Kafka and I got an idea to combine the two things together and implement a scenario around these 3 steps:

  1. Connect a DHT11 Temperature and Humidity sensor to a Raspberry Pi board;
  2. Collect data from the sensor and send to a Kafka cluster: for this part I have used Python technology;
  3. Consume sensor data from the Kafka cluster and show with dynamic charts on a…

--

--

Roberto Pozzi

Roberto works as Cloud Architect, specialized in cloud native and container based architectures.