Paul__B:
What Riva illustrated looks more like a proximity detector rather than a rangefinder.
I wonder if you mounted an IR range detector directly onto the inside of the lens it would still work and keep the project waterproof.
A better link with pictures and info. | Acroname