Does the sensor detect the water?

Hey all,

I am having a small project to measure the distance between a robot and a wall or glass, the robot will be spraying water all time, so will this water spray affect the measurements that will be given by the ultra sonic sensor?

Would you please recommend any sensor that would fit my situation the best.
The sensor should detect the wall and the glass but not the water, precision in cm is enough starting from 10 cm.

which is better to use for narrow beam, ultra sonic or infrared?

thanks in advance.