Building a sample application
We will start off by implementing the end-to-end solution, where we take the data from a DHT11 sensor and post it to the Azure IoT hub.
End-to-end communication
To get started with Azure IoT, we need to have an Azure account. If you do not have an Azure account, you can create one by navigating to this URL: https://azure.microsoft.com/en-in/free/.
Once you have created your account, you can log in and navigate to the Azure portal or you can visit https://portal.azure.com to reach the required page.
Setting up the IoT hub
The following are the steps required for the setup. Once we are on the portal dashboard, we will be presented with the dashboard home page as illustrated here:

- Click on
+New
from the top-left-hand-side menu, then, from theAzure Marketplace
, selectInternet of Things
|IoT Hub
, as depicted in the following screenshot:

- Fill in the
IoT hub
form to create a new IoT hub, as illustrated here:

Note
I have selected F1-Free
for the pricing and selected Free...