A sonic anemometer measures wind speed using sound rather than any moving cups or vanes. It has a fixed transmitter and a fixed receiver, and it times how long an ultrasonic pulse takes to travel between them.
Because sound travels faster when the air is moving with it and slower when it is moving against it, a tail wind shortens the travel time and a head wind lengthens it. By firing pulses in both directions along the same path and comparing the two measurements, the instrument can isolate the wind speed along that axis from the speed of sound itself.
Extend that to two or three axes and you get total wind speed and direction. The appeal is obvious: with no moving parts there is nothing to seize up in icing conditions or wear out, which is why sonic anemometers are common on weather stations, ships and research aircraft.