Do it optically with a laser beam.
The laser would bounce down and up from above the water.
You could place photo cells at certain sweet spots or use a mark.
I'd use an off the shelf laser from PLS.
It's not like you're swinging this thing up and down all the time, or are you?