IoT for Fun & Prophet: Scaling IoT and predicting the future with Redpanda, Iceberg & Prophet
Summary
- Real-Time IoT Pipeline: Stream environmental sensor data from ESP32 devices through Redpanda and into Apache Iceberg for scalable, cloud-native data collection.
- Economical Data Collection: Use affordable microcontroller hardware combined with a managed streaming platform to build production-grade IoT infrastructure at scale.
- Predictive Forecasting: Query IoT data with Python and apply linear regression and Prophet to forecast environmental trends and predict future behavior.
IoT for Fun & Prophet: Scaling IoT and predicting the future with Redpanda, Iceberg & Prophet

Talk by Bryan Wood, Solutions Engineer, Redpanda Data (Sponsor Speaker)
In this talk, we’ll walk through a complete real-time IoT architecture—from an economical, high-powered ESP32 microcontroller publishing environmental sensor data to AWS IoT, through Redpanda Connect into a Redpanda BYOC cluster, and finally into Apache Iceberg for long-term analytical storage. Once the data lands, we’ll query it using Python and perform linear regression with Prophet to forecast future trends. Along the way, we’ll explore the design of a scalable, cloud-native pipeline for streaming IoT data. Whether you're tracking the weather or building the future, this video will help you architect with confidence—and maybe even predict it.
Here’s more to explore:
Production ready data pipelines for analytics and AI: https://www.databricks.com/solutions/data-engineering
The Big Book of Data Engineering: https://www.databricks.com/resources/ebook/big-book-data-engineering-2nd-edition
See all the product announcements from Data + AI Summit: https://www.databricks.com/events/dataaisummit-2025-announcements
FAQs
What is the architecture for a real-time IoT pipeline?
This video walks through publishing sensor data from low-cost ESP32 microcontrollers to AWS IoT, then using Redpanda Connect to stream the data into a Redpanda cluster, and finally storing it in Apache Iceberg for long-term analytical storage.
Why use Redpanda instead of Kafka for IoT streaming?
Redpanda is a drop-in replacement for Kafka built for superior performance and scalability. Written in C++, it delivers faster throughput, more reliability, and a fully managed experience—ideal for high-volume IoT data streams.
How can you forecast IoT sensor trends?
Once IoT data lands in Iceberg, you can query it using Python and apply Prophet, a time-series forecasting tool. This enables you to predict future environmental trends based on historical sensor readings.
What makes this approach cost-effective?
By combining economical ESP32 microcontrollers, open-source streaming tools, and cloud-native storage, you can build production-grade IoT infrastructure without expensive proprietary hardware or vendor lock-in.
Full transcript
Thank you for having me. this is my uh presentation IoT for fun and profit. Uh if you get the word play that's in the title, feel free to come by the red panda booth and we'll give you a free t-shirt. Uh if you don't get the word play that's in the title, feel free to come by the red panda booth and we'll give you a free t-shirt. Uh, just a little bit about me. Uh, creative technology leader. Uh, I love tech. I love playing with cool toys.
Uh, I love being passionate about my work. And I love having as much fun as I can with working with great people. Uh, my job at Red Panda right now is to work with uh, and help customers architect solutions before they purchase our products. And Oops. I'd like to start off with just a brief introduction to Red Panda. Uh what we're going to do is we're going to walk you through a little bit of uh an examples, an IoT use case.
Um and what we're going to do is we're going to sample some IoT data. We're going to bring it into a real-time streaming platform and then we're going to do some analysis on it. And I'm going to give you a quick walkthrough of some of the tools that Red Panda makes available to help make this use case possible. Uh so at its core uh at our original conception our founder and CEO sat down and said Kafka is Java and it's slower than it should be for a real-time streaming solution.
So I'm going to rewrite it in C++ and uh uh kind of gain back a bunch of performance benefits going to make it more scalable and more reliable. and he's built a company on that where you can have a completely managed, more scalable, faster, more efficient system uh streaming system than Kafka. Uh but it also leverages all of the Kafka APIs. So we get to use all of the tooling that's available. We're a drop-in replacement uh but all but but offer superior performance and a lot of extra bells and whistles.
We have some unique deployment models. We can offer you a completely managed solution inside of your cloud account. Uh you can also self-host it yourself. It's also a community product. So you can actually go and use this. Uh it's a it's business source available. Uh so you could go and self-host it yourself. You can try it out yourself. Uh we have plenty of successful customers out in the community. And the other kind of half of our port portfolio is a massive connector solution.
So we have the ability to very very easily interconnect lots and lots of services in your infrastructure, lots of data sources, lots of destinations. Uh and most recently uh we've been building lots of AI features and tooling. So you have the ability as well to bring in um like models. you can send your data to open AAI or to lots of different uh you could leverage like AWS bedrock or different different models and query them or do you know essentially enrichment to your data as you're moving data from one place to another real time.
So we give you that kind of extra flexibility uh to leverage um LLMs and new artif new AI techniques and things like that uh inside of your real-time infrastructure. One of the other really neat features that we've just been announcing recently is the ability to take any of our destinations or sources and leverage them as MCP servers, allowing any agents that you're developing to be able to have governed and auditable access to data that lives within your infrastructure that we're connecting to.
So, it's kind of a Swiss Army knife, right? It's a really big toolbox of real-time connectivity tools and brokers uh that give you a lot of extra flexibility and in integrations with just about anything that's out there. So, sorry for the sales pitch, but it is very relevant to the uh to the example that we're going to be going through uh right now. Oops, I'm pointing this thing in the wrong direction. So, I want to show you guys uh just a quick summary of the uh solution that I'm kind of talking about here.
Um, if you're familiar with uh IoT, the use case is IoT. Uh, we have a little uh MQTT or a little firmware, a little embedded device with a temperature sensor in it. I was actually going to bring it up here. I kind of forgot to go grab it. Uh, but if you want to see it, it's actually at our at our table over there. It's a little ESP32 microcontroller with a tiny little bit of code on it and a little sensor that can read your temperature and the humidity of the environment that you're in.
Um, but what we're going to do is we're going to send that data, the temperature and humidity data into the AWS IoT service and we're going to be leveraging their MQTT broker. So, we're going to be kind of using that. That's the native way. That's the way that most people are connecting IoT data solutions. We're going to take that data and we're going to pick it up from AWS's IoT broker and we're going to with Red Panda, the MQTT uh connector in Red Panda is the fifth most popular connector that we have.
And then we're going to put that data into your Red Panda topics and that data is going to kind of magically be reflected into iceberg where then we can query it and do analysis on it and like I said, we're going to predict the future. So, the device itself, that's an ESP32. Like I said, there's one at the table if you want to get a closer look at it. Uh, these things are great. They're like a few bucks on Amazon if you ever like want to tinker or get into uh IoT.
They're really really cool. There's uh lots and lots of different SDKs and development uh tools and utilities for them. Uh, I use Platform IO to build firmware and push it out there. You can use Arduino. You can use all kinds of cool stuff. Um, but this essentially has a two core 32-bit microprocessor, 300 megahertz uh clock speed. Uh, it's got a full Wi-Fi and Bluetooth stack on it. So, it's a pretty powerful little device to get for, you know, three or four bucks off of Amazon.
They make a version that even have even has a camera on it for a couple bucks more. Uh, but its ability to connect to Wi-Fi and emit telemetry is what we're going to be leveraging here. And this is just a small summary of the code. uh you don't have to really read the code. All this is saying is the device is going to power on. It's going to connect to Wi-Fi. It's going to read the data from the center the sensor and then it's going to send that data to the MQTT broker uh in the AWS IoT stack.
Uh the AWS IoT stack is fairly ubiquitous in the IoT space. Uh if you're familiar with it, lots and lots of people use it to build their IoT solutions, gather data from the field. uh all types of IoT solutions are based on it these days. Uh and that's why I chose it, right? Is because a very very common solution for gathering telemetry from IoT devices. Oops, did I skip one? There we go. This is the data itself. So, as you can see, all we're doing is taking the ID of the device that we've generated.
Uh we're sampling humidity and we're sampling temperature. uh and we are uh gathering a time stamp and a unique ID for this transaction and sending it on its way onto the MQTTP stack. Very very simple. And this is the Red Panda configuration. Again, very very simple. I'm focusing on simple, not a lot of moving parts. Uh, as you can see, this is really the main parts and pieces necessary to configure Red Panda Connect.
Red Panda Connect is a single binary. So, you take this YAML file and you run that single binary against this YAML file and it's going to just dutifully pick up those messages that are sitting in your MQTT uh topic and send it to you can see the output section. It's going to send it to the red panda cluster and just each message is going to pick them up and send it to the topics that are on the uh the red panda cluster. very very simple idea but that's the point is we want something very simple now this is the same mechanism where I was talking about earlier if you wanted to do enrichment if you wanted to do windowing if you wanted to do some type of basic aggregation or if you wanted to uh serialize the data or lots of other different things that you would do on the way as you're moving your data around uh Red Panda connect absolutely has the ability to do those in a very very simple way and again I I I find a lot of people in the field writing microservices to do this kind of work, which means they're firing up an IDE, they're writing code, they're deploying a micros service somewhere that pretty much just picks up and syncs data from one place to another because it's a really really valuable function that a lot of people are doing.
Uh so now that the data is in your red panda topic, this is an example of the red panda uh interface, the developer interface or the console. So if you ever want to, you can go and you can poke around and look at your topics. You can create new topics. You can look at your schemas. Uh you can manage your users. It's very very developer friendly and ergonomic interface. This is just an example of that uh evidence of that uh payload right that we were looking at uh showing up in the console where we can actually look at it.
And if we wanted to turn on iceberg, this is how we do it. It's just a topic property. You can do it via the CLI. You can set it via the console here. But it's just a you look at all your topics. Whichever one of those topics you want to turn into an iceberg table, you go and you configure this parameter right here and your data will show up uh in iceberg. And now just announced today uh is our integration with data bricks via their unity catalog.
So you get a really really fantastic experience here. all of your data right that's flowing around could be IoT data could be uh all kinds of other data could be financial data this is a really really fantastic integration all of your data that sits on your topics any specific topic that you want to suddenly show up as a queryable table that you can now go and do analytical work on all you have to do is enable that one property and it shows up in your catalog in the Unity catalog where data bricks is going to be able to do your compaction and your table maintenance activities activities and things like that.
So, it's going to give you a really a pretty fantastic experience. It's a pretty tight integration where you know all of your real time, all of your Kafka kind of oriented use cases, all of your real-time data or connectivity that's going on any of those topics now have the ability to be reflected in a queryable way uh very very ergonomically. And I'm just quering this data out of iceberg uh using a Python client. It's a little bit more basic than a lot of the really fantastic stuff you could do uh in the data bricks ecosystem, but you can see here right we started with a JSON or with a simple uh JSON object and now it's been uh serialized and deserialized uh and put back into iceberg table format and now you've got a handful of rows here where uh where we can now track the temperature and the humidity uh in my office uh over the course of time right with the time stamps.
Now, uh this is the profit part of the uh of the discussion. This is just an example of some really basic analysis that you can do with the data that once it's in a uh once it's in a table for you to be able to query. You can see that uh profit is a very very simple library provided by uh meta. It's open source uh that allows you to do very basic linear regression on time series data. Uh in Python all you have to do is get your time series data into a data frame where you've got a column for your time stamp and a column for the value that you want to predict which is really great that lines up with the data that we were just looking at. uh and we what we're also doing which I'm not showing here is we're establishing co-gressors.
In other words, can this value as it moves along uh up and down can that be influenced by other time series data right that's synchronous with that data. So I'm we're also I'm not showing that here but we are adding a co- regressor as well in the example but you can see here really it's very very basic. We create a model we fit the model to the data that's in the data frame. uh we establish what we define as the future.
Uh periods equal one means I'd like to look one day out into the future and make a prediction on what I think the temperature and humidity is going to be. Uh and then we actually apply the model to the data and uh come up with our forecast which is just again a table of data with the future in it. Now uh and then we can plot that and we can send that to plot. io or or any other any other uh plotting you know utility that's out there.
And this is the ultimate like uh this is the net effect. This is the picture that draws. And the reason I really love this picture is this is my office. And you can see it says inside 00001. Uh this is the temperature in my office. And you can see that the actual data stops there and that the forecast continues. Uh, but it got really really erratic on the 25th of May in the afternoon after I got off work because I put a box with a whole bunch of GPUs in my office to be able to do some AI uh, learning and testing and things like that.
And you can see that it just drove the temperature and humidity in my office pretty wonky. Uh, which caused the uh, you know, which is which is good to have wild data when you're trying to do predictions. Uh, but you can see very very easily that um, uh, these are also informing each other, right? They're co-regressors of each other. And then we're looking out into the future and saying, "Hey, in 24 hours the uh the we're going to be 29.
3 degrees C in my office and we're expecting about a 40% humidity." Uh so that's kind of the outcome, right? This is an example of, you know, some of the fun stuff you can do with uh flattened out data like this. And ultimately uh the you know the great advantages to an approach or an architecture like this is that it's extremely low cost right and we can even go lower. We've got serverless options available. Uh but ultimately the Red Panda platform if you're deploying uh in our BYOC architecture we handle you know tens of gigabytes hundreds tens of megabytes hundreds of megabytes if not gigabytes per second of data right and this one little device is emitting you know half a kilobyte every five minutes.
So we have the ability to process a ridiculously high amount of throughput. So you can scale from very very low cost to a tremendous amount of throughput. It's also extremely durable. If you've dealt with other real-time messaging solutions that are out there, uh if you lose brokers, you lose messages, that kind of thing, Red Panda is reliable in that sense. We've got a lot of documentation and uh other thirdparty services that have audited and verified that we are truly an extremely durable solution.
It's also entirely sovereign, right? These iceberg tables can live within your account. The brokers themselves can live with you in your account and be completely managed by us. Uh and it's and it's very very simple, right? So the idea is you can scale from a very very low throughput to a very very high throughput and pay the kind of incremental costs to your cloud provider rather than having to build some massive massive uh solution.
All of these tools scale as you go along quite easily. And so as I think about the this demo itself, right, in the use case, we have a lot of customers that are in IoT. They're doing a lot of work that's very similar to this workflow to this architecture that we're kind of exploring here. Some of some of the directions that I think I'm going to go and I'll show the QR code again. If you want to grab that QR code, all of this code is out on GitHub.
Uh the little bitly link right will take you right there and you could do any of this work yourself. Feel free to hit me up and ask questions. Like I said, I work with people in the field. I'm happy to give you some examples, but if I continue to evolve this, some of the some of the ideas that I have are I'd like to grab barometric pressure because that's a very classical uh uh leading indicator to weather, right? So, if I add that as a co-regressor, it's going to be a great leading indicator to whether or not the temperature and the humidity are going to go up or down.
So, that's a really good data point to have. Uh, I'd like to deploy a whole bunch more devices and I'd also like to add uh the telemetry that other devices are emitting as co-gressors to the data that we're trying to predict. Just creating a larger data set uh hopefully becoming more accurate. And then also the reason that I leverage profit in this project is because there's only a handful of lines that you need to build your model, fit your model, make your prediction, and draw your picture. random forest, xg boosts, temporal fusion transformers are all other regressive tools that you can use to uh to predict the future, right?
And to see and to make a more accurate line right out into the future. Uh random forest is great, XG Boost is great, temporal fusion transformers are fantastic because they allowed you to establish leading indicators and when you're training them, you can also use GPUs which allows for massive parallelization. uh um uh what's it called? Profit is single threaded, right? So you can only go so wide with your models and stuff like that.
So there's the QR code. Again, if anybody's interested in checking out the code, there's the Red Panda connect job is in there. The profit uh code is in there. The schema for the data is in there. And also the device code is in there. So you could actually take that device code, you could go and compile it, and you could put it on an ESP32 and recreate this whole project. So, uh, I think I'm really close to time. So, I'll I'll invite anybody who wants to ask any questions to feel free to meet us over at the Red Panda booth if you have any questions or would like to chat about IoT use cases or other high throughput use cases.
Uh, but that's my talk. That's a nice little summary. Thank you so much all of you for coming and attending my talk. Um, have a great show.
Learn more about the Databricks Data and AI platform.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.