The Light switches and electrical sockets are power devices that enable the electric equipment to be connected to the alternating current (AC) power source. Such switches and sockets are utilized…