All processing done onboard and a single output pin returns a pulse-width proportional to object distance.
Works by sending a 40kHz pulse and measuring the time for the pulse to be ‘reflected’ by an object, then using the speed of sound(~340m/s in air) the distance can be calculated.