     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);

  Sketch used by UA Sensors platform.

  Created 14 6 2014
  Modified 14 6 2014
*/

#include <LowPower.h>

    // 20. Turn off GSM.
    // -----------------

    // Turn off GSM power pin.
    if (sim900.ensureOffline() == false)
    {
      // TODO(richard-to): What would be best way to handle this issue?
      //                   Battery will die quickly if power cannot be turned off.
      //                   Send SOS SMS?
    }

    // Turn off GSM MOSFET.
    digitalWrite(MOSFET_GSM_PIN, LOW);
