 
   for (int i = 0; i < sizeof(thermalSensor) / sizeof(DeviceAddress); i++)
   {
-  //  Serial.println(getData(thermalSensor[i]));
-
-  }
-  
-  execRemoteCommand();
+    Serial.println(getData(thermalSensor[i]));
+    Serial.print("TREND "); Serial.print(i); Serial.print(":"); Serial.println(tempTrend[0][i]);
+    makeForecast(i, true);
+  }
+
+  //execRemoteCommand();
   //printAlarms(t0); // Вывод пороговых значений на экран
-  delay(30000);  // задержка проверки
+  delay(cycleDelay);  // задержка проверки
   //getNetworkStatus(false); Serial.println(toProgressBar(2, 30, gsm_signal)); // Network signal quality print
 }



// forecast in seconds elasped time to DestroyAlarmTemp[]
int makeForecast(int deviceid)
{
  float forecastSeconds ;
  float delta_temp;
  float cur_temp = sensors.getTempC(thermalSensor[deviceid]);
  // Serial.print("[mF] Cur_temp:"); Serial.println(cur_temp);

  if (tt1mTrend[deviceid] < 0 )
  { //recovery time calculation
    delta_temp = cur_temp - HighAlarmTemp[deviceid];
    //Serial.print("[mF] Trend < 0. delta_temp:"); Serial.println(delta_temp);

  }

  if (tt1mTrend[deviceid] > 0 )
  { //Destroy time calculation
    delta_temp = DestroyAlarmTemp[deviceid] - cur_temp;
    // Serial.print("[mF] Trend > 0. delta_temp:"); Serial.println(delta_temp);
  }

  forecastSeconds = delta_temp / tt1mTrend[deviceid];
  //Serial.print(delta_temp); Serial.print("/"); Serial.print(tt1mTrend[deviceid]); Serial.print("="); Serial.println(forecastSeconds);
  return int(round(forecastSeconds));
}

// proceed a call just for make a loud sound in the middle of the "do not distrub" mode on smartphone
boolean makecall(String number)

  Serial.println(" devices.");

  // search for devices on the bus and assign based on an index.
  for (int sensor = 0; sensor < sensors.getDeviceCount(); sensor++)
  {
    if (!sensors.getAddress(thermalSensor[sensor], sensor))
    {
      Serial.print("[boot] Unable to find address for Device:"); Serial.print(sensor);
    }

    Serial.print("[boot] Sensor #"); Serial.print(sensor);
    Serial.print(": "); Serial.println(getAddress(thermalSensor[sensor]));
    sensors.setHighAlarmTemp (thermalSensor[sensor], HighAlarmTemp[sensor]);          // alarm when temp is higher than HighAlarmTemp[i]
    sensors.setLowAlarmTemp(thermalSensor[sensor], LowAlarmTemp[sensor]);             // alarm when temp is lower than LowAlarmTemp[i]
    Serial.print("[boot] Alarms:");  Serial.println(getAlarms(thermalSensor[sensor]));
    for (int period; period < 3; period++)
    {
      tempSumm[period][sensor] = sensors.getTempC(thermalSensor[sensor]);
    }
  }
}
// get sim900 module status
