Described used ultra sonic sensor
This commit is contained in:
parent
63708eeecc
commit
37c83ecef8
@ -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
|
||||
|
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user