How do I know which wire is the ground?
Typically, there will be three wires present in an electrical system – black or red (the hot wire), white (the neutral wire), and green or bare copper (the ground wire). The ground wire provides a safe pathway to prevent electrocution in case there is an electrical short. When hooking up your switch, look for the wire with green insulation…