Does your new switch require a neutral? If so, is there one tucked into the back of the box?
Switches do not require a ground to work, although some can use the ground in place of a neutral. If there is a ground wire in the box then wire nut it to the ground wire of the switch.
Switches do not require a ground to work, although some can use the ground in place of a neutral. If there is a ground wire in the box then wire nut it to the ground wire of the switch.