SODIAL (R) HC-SR04 Distance Measuring Ultrasonic sensor module for Arduino (Electronics)
This sensor is accurate to the centimeter and has a very narrow angle of view in front of him! Here is the code of a program to capture its values: int trig = 7; echo int = 8; time int = 0; int distance = 0; void setup () { pinMode (trig, OUTPUT); //