Just about every “getting started with microcontrollers” kit, Arduino or otherwise, includes an ultrasonic distance sensor ...
If you're looking for a way to turn your Bluetooth speaker into a Spotify Connect device, then this is the way.