Print distance
This commit is contained in:
parent
3a2ddb92e3
commit
939a5fe21a
@ -61,5 +61,9 @@ void loop() {
|
||||
if (!tankSensor.timeoutOccurred())
|
||||
{
|
||||
uint16_t distance = tankSensor.readRangeSingleMillimeters();
|
||||
Serial.print("Distance");
|
||||
Serial.println(distance);
|
||||
} else {
|
||||
Serial.println("Timeout");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user