Programming a 2 Way DIP Switch to process if a certain connector is being tester

Seeing that the variable pinTwoInput has been set to a value of two then if (pinTwoInput == 1 ) is never going to happen.
Maybe you mean to read the input value on that pin.

Also do not use pins 0&1 as they are used for the serial port and it could give you problems uploading code.