Controlling Micro Servo

So I know that this is a dumb question (I'm kind of new) but I'm not exactly sure on how to control a Micro servo using a potentiometer witht he Arduino I know the setup needed but I'm not so sure about the program/code needed I would also like to use the serial monitor to see where the servo motor is pointing (but having it show where it is pointing is less needed) Can anyone help me out?

Take a look at the servo->knob example that comes with the IDE

Look in the examples, section 10, starterkit, there's a "ServoMoodSensor" example or some

It's explained fully, with code, right here. You can show the servo position by just using Serial.println(val).