Aircraft use pitot tubes or pitot-static tubes. Do these have some kind of anti-ice system? If so, how? And if not, why not?
I'll just point out that it doesn't seem trivial to de-ice such a thing. A simple heating element at the front would melt the ice but then the water will travel through the tube and probably quickly reform somewhere else. So the entire tube could be heated, but then, that will drastically alter the ambient conditions that the pitot is trying to measure.