From 37c83ecef819d1ab7c90d6099c377f10fcdf530e Mon Sep 17 00:00:00 2001 From: Ollo Date: Mon, 21 Dec 2020 16:18:22 +0100 Subject: [PATCH] Described used ultra sonic sensor --- esp32/Readme.md | 1 + esp32/src/main.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/esp32/Readme.md b/esp32/Readme.md index 15704a8..ae1a50d 100644 --- a/esp32/Readme.md +++ b/esp32/Readme.md @@ -18,6 +18,7 @@ Uses ESP32MiniKit * Solar powered (voltage) * Lipo-Powered (voltage) * Temperature + * Distance sensor [JSN-SR04T-2.0] (for waterlevel) * Custom GPIO ## Documentation of Power-Modes diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index fb89d27..86757e4 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -404,7 +404,10 @@ long getLastActivationForPump(int plantId) } } -/* Use the Ultrasonic sensor to measure waterLevel */ +/** + * @brief Read ultra sensor JSN-SR04T-2.0 + * Read the distance of the water level. + */ void readDistance() { for (int i = 0; i < 5; i++)