How to interface this no nc c switch with arduino

Still conveys no information that we can use to help you.

What is the code supposed to do? What does the code really do.