 int monPeriod2 = 600; // 10 minutes
 int monPeriod3 = 1800;// 60 minutes
 
-
 long count_t1, count_t2, count_t3;
 long startOfPeriod1, startOfPeriod2, startOfPeriod3;
 
+
+float gsm_signal = 0;
 float tt1m[4], tt2m[4], tt3m[4];
 float tt1mLast[4], tt2mLast[4], tt3mLast[4];
 float tt1mTrend[4], tt2mTrend[4], tt3mTrend[4];

    readString += inchar;
    delay(10);
  }
  //Serial.println(readString);
  for (int i = 0; i < 200; i++)
  {
    if (readString.substring(i, i + 5) == "ERROR")
    {
      sim900status = false;
      Serial.print("Network status:"); Serial.println(readString.substring(i, i + 5));
      break;
    }
  }
  return sim900status;
}


// get a termal-sensors device address
String getAddress(DeviceAddress deviceAddress)

    delay(10);
  }

  if (debug) {
    Serial.print("[DBG] getSimCardStatus:");
    Serial.print(readString);
  }

  for (int i = 0; i < 200; i++)
  {
    if (readString.substring(i, i + 5) == "READY")
    {
      sim900status = true;

      if (debug) {
        Serial.print("FOUND:");
        Serial.println(readString.substring(i, i + 5));
      }
      break;
