Hello @AhmedAssad-8581 Welcome to Microsoft Q&A Platform and thanks for your query.
We have a wonderful tutorial on how to build a sample IoT Plug and Play device application, connect it to your IoT hub, and use the Azure IoT explorer tool to view the telemetry it sends.
Please refer to the below tutorial which is authored in multiple programming languages of your choice to select from C, C#, Java, JavaScript, or Python. I can suggest you look at this thermostat pnp sample (language as you want). For both Linux or Windows environments.
If you are looking to switch to embed-C and other devices, then the below Tutorial would be great.
Implement IoT Plug and Play on constrained devices
Please comment in the below section if you need further help with your requirement.