Use a meter and test the continuity between the terminals.If it is a switch type then you will see two pairs making and breaking contact.Then you need to wire it up with the common to ground, other connectors to the two inputs and enable the pull up resistors or have external ones.