     // Serial.print("[mF] Trend > 0. delta_temp:"); Serial.println(delta_temp);
   }
 
-  forecastSeconds = delta_temp / (tempTrend[0][sensor] / monPeriodLen[0]);
-  forecastMinutes = forecastSeconds / 60;
+  forecastSeconds = delta_temp / tempTrend[0][sensor];
   //Serial.print(delta_temp); Serial.print("/"); Serial.print(tt1mTrend[deviceid]); Serial.print("="); Serial.println(forecastSeconds);
   if (debug)
   {
+    Serial.print("[DBG] trend:"); Serial.println(tempTrend[0][sensor]);
     Serial.print("[DBG] "); Serial.print(timeToHuman(forecastSeconds)); Serial.print(" till ");
     if (tempTrend[0][sensor] < 0 )
     {

      tempSumm[period][sensor] = sensors.getTempC(thermalSensor[sensor]);
    }
  }
}
// get sim900 module status
boolean getSIM900status(boolean debug)

int last_call_hour;
int last_message_hour;

int monPeriodLen[3] = {60, 3600, 21600};                              // 10 minutes // 60 minutes // 12 hours


float gsm_signal;
float tempSumm[3][4];
float tempTrend[3][4];
float tempAvgCur[3][4];
float tempAvgPrev[3][4];
int   measuresCount[3];
int   measuresPerPeriod[3];
long  startOfPeriod[3];
