Using a potentiometer and the Arduino servo library to control a servo motor.