This training course in IoT (Internet of Things) and Cyber-Physical Systems in Industry 4.0 It provides a comprehensive overview of two of the most important concepts currently in the fields of technology and industry. It addresses the Internet of Things (IoT), exploring its context, essential elements and architecture. Participants will learn about the devices used in the IoT and explore specific use cases that illustrate their real-world applications. You will cover the Cyber-Physical Systems (CPS), placing them in the context of Industry 4.0. The key characteristics of CPSs are explored and the essential components that make them up are identified. Furthermore, the challenges and trends those on the horizon for CPS and those shaping the IoT