From 939a5fe21a6e05ae3810d43715e3735465d33b48 Mon Sep 17 00:00:00 2001 From: Ollo Date: Wed, 22 Mar 2023 20:21:10 +0100 Subject: [PATCH] Print distance --- esp32test/Esp32DeepSleepTest/src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/esp32test/Esp32DeepSleepTest/src/main.cpp b/esp32test/Esp32DeepSleepTest/src/main.cpp index fa2de84..85f24e4 100644 --- a/esp32test/Esp32DeepSleepTest/src/main.cpp +++ b/esp32test/Esp32DeepSleepTest/src/main.cpp @@ -61,5 +61,9 @@ void loop() { if (!tankSensor.timeoutOccurred()) { uint16_t distance = tankSensor.readRangeSingleMillimeters(); + Serial.print("Distance"); + Serial.println(distance); + } else { + Serial.println("Timeout"); } }