I have already made all the connections on arduino & motor driver, and so far i am able to rotate my stepper motor with the printer motor in sync. But i am not able to understand the PE sensor fundamental. I am attaching 2 image of my PE sensor (from front and from rear), i can not figure out which wire is which one, and where i have to connect them. please refer to the image & help.
is the pin number 2 a ground wire, if yes then what are the rest 2 wires and where i have to plug these three in arduino.