Ultrasonic Sensor HC-sr04 :
Ultrasonic sensor is use to calculate the distance. It use ultrasonic waves to measure the distance. The ultrasonic wave can hit the object and and come back, ultrasonic sensor can use time to calculate the distance. HC-04 consists of two ultrasonic transducers.