 void setup()
 {
   pinMode(SD_CS_PIN, OUTPUT);
-  pinMode(MOSFET_THERM_PIN, OUTPUT);
+  pinMode(THERM_PIN, OUTPUT);
   sim900.begin(&Serial);
 }
 



// Global Variables
int numCachedReadings = 0;
SensorReading sensorReadings[SEND_DATA_AFTER_X_READINGS];
UASensors_Sim900 sim900;

      sim900.sendTextMsg(textMessage, PHONE_NUMBER);
      if (sim900.isTextMsgDelivered() == false)
      {
        sd.begin();
        sd.writeFile(ERROR_FILENAME, String(unixTime) + ": " + ERROR_SMS);
        sd.writeFile(UNSENT_FILENAME, textMessage);
      }
    }
    else
    {
      sd.begin();
      sd.writeFile(ERROR_FILENAME, String(unixTime) + ": " + ERROR_GSM);
      sd.writeFile(UNSENT_FILENAME, textMessage);
    }

    // Reset number of cached readings
