 #include <SoftwareSerial.h>
 #include <math.h>
 
-// TODO: Запилить журнал ошибок, учитывать время которое показатели были ниже нормы. Ежедневный отчет по ошибкам, или еженедельный. СМС меню.
 
 SoftwareSerial SIM900 (10, 11);                   //SIM900 is connected to 10 & 11 PINs RX, TX
-#define ONE_WIRE_BUS 13                           //Dallas OneWire sensors is connected to 13 PIN
+#define ONE_WIRE_BUS 12                           //Dallas OneWire sensors is connected to 13 PIN
 
 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;
+int cycleDelay          = 10000;
 // Set total connected sensors
 
 String textForSMS;

  if (sensors.hasAlarm(thermalSensor[deviceid]))
  {
    last_alarm_time = getShortTimeString();
    Serial.print(last_alarm_time);
    Serial.print(" ALARM: ");
    Serial.println(getData(thermalSensor[deviceid]));
    if (armed)
    {
      for (int i = 0; i < sizeof(phone_number) / sizeof (String); i++)


void setup()
{

  //setTime(14, 25, 30, 11, 3, 2016);   //set the system time to HH, MM, SS, DD, MM, YYYY
  //RTC.set(now());                     //set the RTC from the system time


  Serial.begin(9600);                             //Serial debug console initialize at 9k
  Wire.begin();

