Just throwing out a couple of ideas...
A whisker switch (where a whisker is attached to a microswitch). The switch could be in a sealed container and the whisker protrudes through the container wall.
An infrared sensor, like the Sharp IR sensor. The sensor could be sealed in a transparent container. I don't know if it works through water, though.