To be safely cooked, the lowest allowable temperature anywhere in the bird is 161 F. Thigh meat is better at 180 F. The testure improves.
Put the thermometer in the thickest part of the thigh but also check other parts.
If you are stuffing the turkey, the stuffing must also be at a minimum of 161 F.