     // 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 )
     {


  for (int period = 0; period < 3; period++)
  {
    for (int sensor = 0; sensor < sizeof(thermalSensor) / sizeof(DeviceAddress); sensor++)
    {
      if (now() - startOfPeriod[period] <= monPeriodLen[period])
      {
        measuresCount[period]++;
        tempSumm[period][sensor] = tempSumm[period][sensor] + sensors.getTempC(thermalSensor[sensor]); // Calcluating summ of temperature vaules for average calculation
      }
      else
      {
        startOfPeriod[period] = now();
        tempAvgPrev[period][sensor] = tempAvgCur[period][sensor];

        tempAvgCur[period][sensor] = round(tempSumm[period][sensor] / measuresCount[period]); // Calculating average value for period 1;
        tempTrend[period][sensor] = (tempAvgCur[period][sensor] - tempAvgPrev[period][sensor]) / measuresCount[period];

        tempSumm[period][sensor] = 0;
        measuresCount[period] = 0;
        if (debug)
        {
          Serial.print("[DBG] TREND "); Serial.print(sensor); Serial.print(":"); Serial.println(tempTrend[period][sensor]);
          makeForecast(sensor, true);
        }
      }
      measuresCount[period] = 1;


    }


String phone_number[]   = {"+79000000000"};       // Phone numbers for SMS notifications
int HighAlarmTemp[]     = {26, 26, 26, 26};       // Highest temperature when user is notificated
int DestroyAlarmTemp[]  = {40, 40, 40, 40};       // Temperature used to make forecast
int TargetTemp[]        = {24, 24, 24, 24};       // Temperature used to make forecast
int LowAlarmTemp[]      = { -28, -28, -28, -28};  // Lowest thmperature when user is notificated
int cycleDelay          = 3000;
