Most often ultrasonic transducers are used for distance measurements ... That outputs both the audio signal and a 40 kHz carrier signal, implemented using the Arduino’s Timer1.