I think that would be practical. The presence/absence of liquid would produce an amplitude and/or frequency shift of the vibration. The vibrating probe could be made liquid-tight and easily cleanable.A vibrating object is another possibility, like an ultrasonic membrane or a piezoelectric disk