We did this ~12 years ago with commercial ultrasonic sensors and a strict no-fluid-contact rule. Just sticking a pipe into the tank worked absolutely perfectly. The pipe length was somewhere around 4m and pipe diameter was, I think, 1-1/2 in (~40mm).
Thank you, that is reassuring. I am just waiting for a standard ultrasound sensor to arrive.
I can certainly guarantee "no fluid contact" as in "no immersion" -- but did you also need to (and manage to) avoid condensation on the sensor? Some high-end sensors are specified as being self-cleaning, which I assume means they shake off droplets via the ultrasound emission. But lower-cost transducers probably don't work well when droplets are sticking to them?
"No immersion" was for the other end of the business: the liquid was high-purity, clean-room stuff. (Also it hated iron, and stainless steel contains iron. Yes, this was a
massive headache.) This liquid
additionally hated oxygen, so it was kept under a dry nitrogen blanket. (That one was surprisingly little headache.) So, condensation was not a concern for us, and I'm afraid I can't provide any guidance for you there.
If it helps, the sensor we used was
this guy, the ToughSonic 30, or one of its close relatives. I didn't select it, so I can't tell you why it was chosen. I can just tell you that it works pretty well. It's probably out of your price range, though (it's out of mine if I'm paying!).
How long would some cling film last in the dark? It's ultrasonic transparant AFAIK.
I have a hard time believing that, given that something as simple as a boundary layer between two different gases will royally destroy the poor sensors.