Cars use MAF sensor. It measures amount of the air getting into the engine and probably this is the speed of the air. They are cheap and uses different methods. My Toyota Supra 1988 has an optic one. I think there are dozens of other ways to measure air speed without mechanical devices.