The following is the logical design diagram for the overall solution, which is built on the same architecture design explained in the preceding chapter:

Logical architecture for remote monitoring of devices
In this solution architecture, we use Event Hubs as a Cloud Gateway for event data ingress coming from the sensor. This is useful when there is only device-to-cloud data ingression flow. You can also use Azure IoT Hub; however, it is more appropriate when you have both device-to-cloud and cloud-to-device communication (bi-directional communication) flow, including device managements. You may refer to
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-compare-event-hubs ...