How do you get servo position in arduino?

What about attaching a sensor or something to the servo to detect the angle of the servo?