Digital twins are considered the next step in IoT-based cyber–physical systems; they allow for the real-time monitoring of assets, and they provide a comprehensive understanding of a system behavior, allowing for data-driven insights and informed choices. However, no comprehensive framework exists for the development of IoT-based digital twins. Moreover, the existing frameworks do not consider the aspects introduced by the Industry 5.0 paradigm, such as sustainability, human-centricity, and resilience. This paper proposes a framework based on the one defined as the outcome of a project funded by the European Union between 2010 and 2013 called the IoT Architectural Reference Model (IoT-A or IoT-ARM), with the aim of the development and implementation of a standard IoT framework that includes digital twins. This framework establishes and implements a standardized collection of architectural instruments for modeling IoT systems in the 5.0 era, serving as a benchmark for the design and implementation of an IoT architecture focused on digital twins and enabling the sustainability, resilience, and human-centricity of the information system. Furthermore, a proof of concept of a monitoring digital twin for a vertical farming system has been developed to test the validity of the framework, and a discussion of applications in the manufacturing and service sectors is presented.