Rotating a motor according to calculated output
Firstly, photodiodes don't give you nice clean 0V/9V signals. You get better behavior from phototransistors, but you will still need some sort of thresholding system to decide where the boundary between light and dark is.

Secondly, you want to read the signals from what looks like a 7-segment display pattern, decode them, and rotate something accordingly. You will probably want a microcontroller to do the recognising. From there you have two options:


continuous rotation servo.
motor, possibly with a gearbox, driven by an H-bridge, with a revolution counter on the output shaft.


You don't mention what speed or precision you want on the rotation - is it OK to rotate 2.1 times or 1.9 times when you should have rotated 2 times? Do you want 1 RPM or 100 RPM?