One of the most important issues in Industrial Revolution 4.0 is smart manufacturing in such a way that the physical environment converges with the virtual environment in order to monitor and control the physical environment through the virtual environment. One of the solutions to achieve this goal is the digital twin. Various architectures have been presented to implement digital twin which the latest and most reputable of them based on the existing requirements is a five-layer architecture. The five-layer architecture includes the physical layer, virtual layer, service layer, communication layer, and the data layer. Since control and monitoring are performed in the virtual environment, the most important part of the digital twin's implementation will be the virtual environment. Therefore, this study focuses on the virtual layer in digital twin and architects the virtual environment and the user interface with a new perspective. To simulate the virtual environment based on this idea, virtual reality is used to make an environment also to display the physical environment's information to the user in the virtual environment using virtualized models with appropriated visual effects as a suitable alternative for numbers and charts. In digital twin, the user is placed in the virtual environment through which he monitors and controls the physical environment in the virtual environment. There are multiple human factors such as user awareness of the environment and user workload are important parameters that should be considered in creating a virtual environment. Therefore, this research by virtualizing information using graphical models while increasing the user's awareness of the current state of the system, can also reduce the user's workload by providing a suitable user interface. To evaluate the proposed method a digital twin based on the five-layer architecture is implemented which is a combination of various technologies, including communication protocols, fog computing, virtual reality, and the internet of things as introduced in the literature. Digital Twin, Virtual Reality, User Interface