Use HC-SR04 Ultrasonic Sensor to move a motor

No, I wrote "like" not "exactly" as pulseIn.

"dist()" is a function, it returns a value, just like "pulseIn()", but instead of the duration of the echo pulse in microseconds, it returns the distance, in centimetres.