dc motor drive with position sensor

hi guys

I need an orbit to set up a DC motor that goes in and returns to 90 degrees of deviation and a position sensor that at any moment, the position of the mechanism, according to the command that I am sending by a potentiometer mechanically, can someone help me ??? ?

thanks.

It sounds like you need a servo?

...R