How do you get servo position in arduino?

I just sellotaped a potentiometer to the servo, & read the feedback from the pot, the onboard potentiometers i wasnt very happy with