           Serial.print("[DBG] TREND "); Serial.print(sensor); Serial.print(":"); Serial.println(tempTrend[period][sensor]);
           makeForecast(sensor, true);
         }
-        
+
         tempAvgPrev[period][sensor] = tempAvgCur[period][sensor];
         tempSumm[period][sensor] = 1;
         measuresCount[period] = 1;

// proceed a sending message to number
boolean sendSMS(String number, String message)
{
  String readString; 
  SIM900.print("AT+CMGF=1\r");                              // AT command to send SMS message
  delay(100);

  SIM900.print("AT+CMGS=\"");
  SIM900.print(number);
  delay(1000);

    {
      for (int j = 0; j < sizeof(phone_number) / sizeof(phone_number[0]); j++)
      {

        if (readString.substring(i, i + 12) == phone_number[j])
        {

          info_phone_number = phone_number[j];
          for (int k = i; k < 200 - i; k++)
          {
            if (readString.substring(k, k + 4) == "INFO")
            {
              for (int deviceid = 0; deviceid < sizeof(thermalSensor) / sizeof(DeviceAddress); deviceid++)
              {
                sendSMS(info_phone_number, makeMessage(deviceid));
              if (debug) {
                Serial.print("Sent info to:");
                Serial.println(readString.substring(i, i + 12));
              }
              }
            }
          }

        }
      }
    }

  }
}




