Measure the time for waves to reflect back to the ultrasonic device
dev - connected ultrasonic device opened using ultrasonic()
time - time in seconds, or Inf if out of sensor range
See also: arduino, ultrasonic.
Package: arduino