     Serial.begin(19200);
     delay(100);
 
-    sim900.togglePower();
-
 
     // 20. Send text message if GSM Ready
-    if (sim900.isReady(GSM_TIMEOUT) == true)
+    if (sim900.ensureReady() == true)
     {
       sim900.sendTextMsg(textMessage, PHONE_NUMBER);
-      if (sim900.isTextMsgDelivered(SMS_TIMEOUT) == false)
+      if (sim900.isTextMsgDelivered() == false)
       {
         // Log SMS failure
         digitalWrite(MOSFET_SD_PIN, HIGH);

      delay(1000);
    }


    // Reset number of cached readings
    numCachedReadings = 0;


#define UNSENT_FILENAME            "unsent.txt"
#define ERROR_FILENAME             "error.txt"
#define PHONE_NUMBER               "+12223334444"
#define ERROR_GSM                  "GSM Failed"
#define ERROR_SMS                  "SMS Failed"

