Water level Sensor

Would a light sensor work? Will water "break" a light beam?

I know lasers are used for tank guaging. Will an optical proximity sensor work in a similar fasion? Would something like this...

...detect the surface of the water?