Sending our Temperature data to the cloud for Power BI

In the previous post I outlined connecting our temperature/humidity sensor to a Raspberry Pi and taking a reading from it. The next step is to send that data to the cloud and make use of it in Power BI.

Here’s a basic outline of the process

Of course, Power BI isn’t the only thing you could use this data for, though our goal is to add this temperature reading to the Power BI dashboard in our office.

The first thing I needed to find was somebody who had done this before. A few days ago I found this post by Rakesh George that outlines his process: http://www.identitymine.com/blog/2015/06/19/iot-with-raspberry-pi-azure-and-windows-devices/

His temperature sensor setup is a lot more complicated than mine - it looks like he’s taking the binary values from the sensor and working out the temperature value. In our case, we had a great library from Adafruit that did all of that for us.

Compared to other IoT projects, this one is extremely simple. We’re not making use of Event Hubs or Stream Analytics or any of the high scale, high performance tools in Azure. We’re just sending a temperature and humidity value to Azure Table Storage once a minute, then connecting to that data via Power BI Desktop.

I downloaded Rakesh’s source files to see how it can apply to my setup.

Firstly, you’ll need to install the Azure SDK on the Raspberry Pi to make use of the Azure services, check the linuxruninstructions.txt in Rakesh’s Python source file download for instructions on this.

Most of the code relevant to Azure is located in the azuremodule.py file. I learnt a lot about the Azure Python SDK by reading and modifying this script file.

If you’re setting this up yourself, you’ll need to sign up for Microsoft Azure (free trials are available), create a storage account, and add the storage account name and primary key into the sample code.

After a little bit of tweaking, I was able to get it to work using the Adafruit library to retrieve the values from my sensor and upload it to my Azure Table Storage account every 60 seconds.

Once you’re collecting data, you can use the Power BI Desktop App to pull this data into your dashboards for reporting. As I’m testing it, I created a new dashboard for these temperature/humidity values.

Power BI Desktop can be downloaded from here: https://powerbi.microsoft.com/desktop

A basic version of Power BI is available free, though you can sign up for a 60 day trial of Power BI Pro, which has many of the same features, though it refreshes your dashboards hourly instead of daily.

Importing and preparing the data for Power BI

Click Get Data, choose Azure, Microsoft Azure Table Storage.

Enter the storage account name, click OK, then enter the primary key.

Select the table to import.

Import the data, and use the query editor to set the data types and separate the columns for humidity and temperature values.

Create your Power BI graphs and publish them to Power BI.

Once published, you can access them via the browser or the Power BI apps on mobile devices.

IoT project: connecting the sensor to the cloud
Getting data source in Power BI
Modifying data in Power BI
Power BI mobile app view

Related posts

Callers cheering and blowing bubbles in the Animal Welfare League Queensland Giving Day call room, with the fundraising tally and the GCIT logo on the projector behind them
BLOG

Our Team on the Phones for Animal Welfare League Queensland’s First Giving Day

We built a pop-up call centre for Animal Welfare League Queensland's first Giving Day on 17 September 2026, then spent the day on the phones beside its staff and volunteers.
Harry Morris, Elliot Munro, Leon Rebello MP, James Munro, Ryan Colombo and Grace Teu from GCIT with the 2026 McPherson Honours Small Business of the Year trophy
BLOG

GCIT Wins Small Business of the Year at the 2026 McPherson Honours

GCIT was named Small Business of the Year at the 2026 McPherson Honours, hosted by Leon Rebello MP. Here is what the Honours are and the community work behind our nomination.
GCIT team at work in the Burleigh Heads office, with the GCIT logo and the Claude Partner Network Certified Services Partner badge
BLOG

GCIT Is Now Certified in the Claude Partner Network

GCIT is now Certified in the Claude Partner Network. Here is how our team trained on Claude, how we use it in our own business, and how gcOS turns AI into measured results.
Ready to secure and simplify your IT? Talk to a GCIT expert today.