Optical encoder too output moter adafruit motor sheld help

I don't understand why you would need an encoder with the device in your photo. You would need at least one limit switch so the Arduino could establish the HOME or ZERO position but once that is established it should be possible to keep track of the position very accurately by keeping track of the motor steps.

...R