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.
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.