There are also some waterproof ultrasound distance sensors you could use