27 #ifndef _EASYUINO_WATER_DETECTOR_h 28 #define _EASYUINO_WATER_DETECTOR_h 30 #include "Utilities.h" 34 #define DRY_MAX_LEVEL 975 35 #define FEW_WATER_DROPS_MAX_LEVEL 750 36 #define WET_MAX_LEVEL 400 37 #define FLOOD_MAX_LEVEL 0 42 enum class WaterStatus : uint8_t {
43 DRY = 0, FEW_DROPS = 1, WET = 2, FLOOD = 3, INVALID = 4, NOT_INITIALIZED = 255
55 uint8_t _digitalPinTriggerLevel;
73 bool begin(IN uint8_t digitalPinTriggerLevel);
80 WaterStatus getWaterStatus();
85 unsigned int getWaterStatusRange();
91 bool isWaterDetected();
RainDetector API is used to detect the amount of water that is touching the sensor.
Definition: WaterDetector.h:47
General class that provides the common API behaviour for all the devices/sensors. ...
Definition: Device.h:42