Jump height gauge

Hey guys im trying to create a jump height gauge which is virtually a sesor in the verticle position and when the hand travels past the sensor it will log its highest point so i can create a readout on an lcd display. It will need to measure jumps roughly 3-5ft or a large range similar.

Any ideas on what sensor to use and or where to get a similar script

Asking the same question in more than one forum is cross posting. Cross posting is frowned upon.