This sensor emits 42 KHz sound wave. Based on how long does it take for that sound wave to be reflected back to the sensor, it can calculate how far an object is from the sensor.

You can get it at Sparkfun

Table of different models of  Ultrasonic Range Finder detection patterns:

HOW TO CONNECT IT

Advertisements