I have a problem with pins

OK. When you moved the cable did you change the code? What is attached these outputs and how are you determining whether it works or not?