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++)