       //                   Battery will die quickly if power cannot be turned off.
       //                   Send SOS SMS?
     }
-
-    // Turn off GSM MOSFET.
-    digitalWrite(MOSFET_GSM_PIN, LOW);
-    delay(1000);
-  }
+  }
+
+  // Turn off GSM MOSFET.
+  digitalWrite(MOSFET_GSM_PIN, LOW);
+  delay(1000);
 }
      textMessage += String(DATA_DELIM) + String(minutesElapsed) + " " + String(sensorReadings[i].distance) + " " + String(sensorReadings[i].temperature);
    }


    // 19. Turn on GSM Shied.
    // ---------------------

    //Turn on GSM MOSFET.
    digitalWrite(MOSFET_GSM_PIN, HIGH);
    delay(1000);

    // GSM baud rate. Start communication link with GSM shield.
    Serial.begin(19200);

  - Need to test if this version works on test sensor

  Created 14 6 2014
  Modified 1 7 2014
*/

#include <LowPower.h>
