Digital twin is one of the most important innovations in the Internet of Things (IoT) era and business disruption. Digital twins are a growing technology that bridges the gap between the real and the digital. Home automation in the IoT refers to the practice of automatically managing and monitoring smart home electronics by use of a variety of control system methods. The geysers, refrigerators, fans, lighting, fire alarms, kitchen timers, and other electrical and electronic items in the home can all be managed and monitored with the help of a variety of control methods. Digital twins replicate the physical machine in real time and produce data, such as asset degradation, product performance level that may be used by the predictive maintenance algorithm to identify the product functionality levels. The purpose of this research is to design the framework of Digital Twin using machine learning and state estimation algorithms model to assess and predict home appliances based on the probability rate of smart home system gadgets functionality. The main goal of this research is to create a digital twin for smart home gadgets that are used to monitor the health status of these devices for increasing the life time and to reduce maintenance costs. This research presents a Deep Convolution Neural Network based Logistic Regression Model with Digital Twins (DCNN-LR-DT) for accurate prediction of smart home gadget functionality levels and to predict the threats in advance. The proposed model is compared with the traditional models and the results represent that the proposed model performance is better than traditional models.