Receiving data from Microsoft Azure IoT Hub
- Prerequisite
- Set up an Microsoft Azure IoT Hub.
- The device must be connected to the internet.
- Open Node-RED.
- Add the following nodes to the workspace and connect them to a flow:
- Azure IoT Hub Receiver node from the cloud category
- debug node from the output category

You can replace the debug node with any node, you want to inject the data into.
- Double-click the Azure IoT Hub Receiver node to open the Edit node dialogue.
- In the connectionString text box, enter the IoT Hub connection string.
- Click Done to apply your changes.
- Click Deploy.
- 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.