@muhammed khalifa Welcome to Microsoft Q&A forum!
Could you share more details about the scenario? What kind of device are you referring to? As you have mentioned, the device is non-programmable. If you are you able to use gateway, then you can use Azure IoT protocol gateway to enable protocol adaptation for IoT Hub.
Azure IoT Hub natively supports communication over the MQTT, AMQP, and HTTPS protocols. In some cases, devices or field gateways might not be able to use one of these standard protocols and require protocol adaptation. In such cases, you can use a custom gateway. A custom gateway enables protocol adaptation for IoT Hub endpoints by bridging the traffic to and from IoT Hub. You can use the Azure IoT protocol gateway as a custom gateway to enable protocol adaptation for IoT Hub.
Please see Support additional protocols for IoT Hub and IoT Hub Device Streams (preview) for more details.
Do let us know if that helps. I will further enquire and update if there is a direct way you can connect these device to IoT Hub.
If the above response is helpful, please click "Accept Answer" and upvote it.