Help required on dc motor encoder with arduino due

I am having trouble using Arduino due along with dc motor encoder ,the programming port is not Showing the values of the encoder that is rotating and the code worked fine on arduino uno but its not working on the due board. Here is the link of the encoder that I used.

Hello.

According to the encoder library used in the Instructable you linked, any digital pin on the Arduino Due should be able to read your encoder signals, but you might try using different pins on the Arduino Due to see if that fixes the problem. If nothing is showing up in the serial monitor at all, you might try testing with one of basic serial example sketches to make sure that works. If problem remains, I suggest posting about your issue on the Arduino Forum so that your question can reach a larger community.

- Amanda