       tt1mTrend[i] = (tt1m[i] - tt1mLast[i]) / count_t1;
       tt1mLast[i] = tt1m[i];
       tt1m[i] = 0;
-      if (debug) 
+      if (debug)
       {
         Serial.print("[DBG] TREND "); Serial.print(i); Serial.print(":"); Serial.println(tt1mTrend[i]);
         Serial.print("[DBG] TTL: "); Serial.println( makeForecast(i) );

  return true;
}

// main loop
void loop()
{

  sensors.requestTemperatures(); // Send the command to get temperatures
  updateStats(true);

  for (int i = 0; i < sizeof(thermalSensor) / sizeof(DeviceAddress); i++)
  {
    Serial.println(getData(thermalSensor[i]));

  }

  //printAlarms(t0); // Вывод пороговых значений на экран
  delay(3000);  // задержка проверки
  //getNetworkStatus(false); Serial.println(toProgressBar(2, 30, gsm_signal)); // Network signal quality print
}


int monPeriod1Len = 600;                              // 10 minutes
int monPeriod2Len = 36000;                             // 60 minutes
int monPeriod3Len = 21600;                            // 12 hours


long count_t1,        count_t2,       count_t3;
