 int last_call_hour;
 int last_message_hour;
 
-int monPeriodLen[3] = {600, 3600, 21600};                              // 10 minutes // 60 minutes // 12 hours
+int monPeriodLen[3] = {60, 3600, 21600};                              // 10 minutes // 60 minutes // 12 hours
 
 
 float gsm_signal;
 float tempSumm[3][4];
 float tempTrend[3][4];
-int   tempAvgCur[3][4];
-int   tempAvgPrev[3][4];
+float tempAvgCur[3][4];
+float tempAvgPrev[3][4];
 int   measuresCount[3];
 int   measuresPerPeriod[3];
 long  startOfPeriod[3];

    // Serial.print("[mF] Trend > 0. delta_temp:"); Serial.println(delta_temp);
  }

  forecastSeconds = delta_temp / (tempTrend[0][sensor] / monPeriodLen[0]);
  forecastMinutes = forecastSeconds / 60;
  //Serial.print(delta_temp); Serial.print("/"); Serial.print(tt1mTrend[deviceid]); Serial.print("="); Serial.println(forecastSeconds);
  if (debug)
  {
    Serial.print("[DBG] "); Serial.print(timeToHuman(forecastSeconds)); Serial.print(" till ");
    if (tempTrend[0][sensor] < 0 )
    {

int makeForecast(int sensor, bool debug)
{
  float forecastSeconds ;
  float delta_temp;
  float cur_temp = sensors.getTempC(thermalSensor[sensor]);

