Limit switches are often used on the doors of electrical enclosures and cabinets to automatically shut off power or shut…