 //------------------------------------------------------------------------
 // Water tank sensing and publishing to clouds (ThinkSpeak, Blynk)
 //-------------------------------------------------------------------------
-#define SKETCH "WATERTANK 1.3.0"
+#define SKETCH "WATERTANK 1.3.1"
 #include "credentials.h"
 
 const unsigned int TIMEOUT_WATCHDOG = 10000;  // Watchdog timeout in milliseconds

                    rainStatus = RAIN_STATUS_DEW;
                } else if (rainValue <= RAIN_VALUE_RAIN) {
                    rainStatus = RAIN_STATUS_RAIN;
                } else {
                    rainStatus = RAIN_STATUS_SHOWER;
                }
                // Notify at status change
                if (rainStatusOld != rainStatus && rainDiff >= RAIN_VALUE_MARGIN) {

// Statistical smoothing and exponential filtering
const float FACTOR_RSSI  = 0.1;    // Smoothing factor for RSSI
const float FACTOR_LIGHT = 0.2;    // Smoothing factor for light level
const float FACTOR_RAIN  = 0.2;    // Smoothing factor for rain level
const float FACTOR_WATER = 0.8;    // Smoothing factor for water level
ExponentialFilter efRssi  = ExponentialFilter(FACTOR_RSSI);
ExponentialFilter efLight = ExponentialFilter(FACTOR_LIGHT);
