How to measure distance/position accurately?
You haven't suggested that the sensor should not physically interact with the body being measured, so given that I'm going to suggest a spool of line (automatically retracting) and a rotary encoder.  You might need two spools to allow trigonometry to calculate the actual distance to the hand.