A smart home is home automation associated with the Internet of Things (IoT). It connects internet-ready home systems, devices, and…