Limit switch not being recognised

Hi,
I am on the 716 programming team and for the past two days we have been trying to get a limit switch to work on our robot to both reset our encoder, and to stop our lift motor.

We have tried different pins on our RoboRio, and we tested the limit switch and the wiring, and we still can’t get the program to recognise the switch.
If there is anyone who has had this problem or has any other suggestions it would be a great help.

What model limit switch? (Picture would also work)

How do you have it connected? Picture would also work here. Specifically show both ends of the cable.

And because this is under the #technical:programming category, please share your code, ideally as a link to github (or similar)