How to interface this no nc c switch with arduino

Like this ?
const int switch = 7;
then
pinMode(switch, INPUT_PULLUP);
If not please explain more because i still newbie :frowning:

I men the switch didn't work with my project code