added potentiometer control for servo motor