I don't know of an optical position sensor for arduino that is reliable. I've read they can miss steps.
Please describe what you mean by an "optical position sensor", or post links to product pages.
There are many ways of determining motor shaft angular position, and most are extremely reliable. Google "shaft encoder" for more information.