The switches shoud have 3 terminals on them, labelled “C”, “NO”, and “NC” This tands for “Common”, “Normally Open” and “Normally Closed” I generally wire these with the signal pin (S) wired to “Common” and the ground pin (-) wired to “Normally Closed” – It can be the other way around, but this is the arrangement that I like best. Do not use the _5V (+) pin or the Normally Open pin.
The way that it works is that the switch signal is looking for ground on the signal pin. When there is nothing connected, a resistor to +5V allows the signal pin to read logic high which it takes as the switch being triggered. This way, if the wire becomes disconnected, the firmware will see the limit switch as triggered, and it will not try to run the motor past the end of travel. When the “normally closed” contact is connected to “common” this shorts the signal pin to ground, and the board sees logic low (ground) on the signal pin, and reads is as not triggered. Clicking the switch opens the “normally closed” and closes the “normally open” contact, resulting in a triggered condition.
Edit: you need to change the limit switch that you’re using for a touchplate. This has no “normally closed” option, so you need to alter the firmware to expect a normally open switch (IE: triggered on logic low instead of logic high) then I wire it so that the clip (tool) is connected to ground and the touchplate is connected to the signal pin.