Print distance

This commit is contained in:
Ollo 2023-03-22 20:21:10 +01:00
parent 3a2ddb92e3
commit 939a5fe21a

View File

@ -61,5 +61,9 @@ void loop() {
if (!tankSensor.timeoutOccurred())
{
uint16_t distance = tankSensor.readRangeSingleMillimeters();
Serial.print("Distance");
Serial.println(distance);
} else {
Serial.println("Timeout");
}
}