# Receiving data from Microsoft Azure IoT Hub

1. Set up an Microsoft Azure IoT Hub.
2. The controller must be connected to the internet.

1. Open Node-RED.
2. Add the following nodes to the workspace and connect them to a flow:
3. Azure IoT Hub Receiver node from the cloud category
4. debug node from the output category

5. ## NOTICE

   You can replace the debug node with any node, you want to inject the data into.

6. Double-click the Azure IoT Hub Receiver node to open the Edit node dialogue.
7. In the text box connectionString, enter the IoT Hub connection string.
8. Click Done to apply your changes.
9. Click Deploy.

1. The status of the Azure IoT Hub Receiver node changes to Connected. As soon as messages arrive at the Azure IoT Hub, the Azure IoT Hub Receiver node emits them through its output. The debug node displays the messages in the debug tab of the sidebar.