   if (startSD())
   {
     // Read thermistors
-    int tempA = thermistorA.getReading();
-    int tempB = thermistorB.getReading();
+    updateTemperatures();
 
     // Log Time & Temperature
     logTimeToFile("time.txt");

    myFile.print(" ");
    myFile.print(hour());
    myFile.print(" ");
    myFile.print(minute());
    myFile.close();
    
    Serial.println("done.");

filename has to be short :\ *NOTE*

*/

// SD storage stuff
#include <SD.h> // Modified SD.cpp in SD library to allow for multiple SD.begin() calls
// Add to Line 343 of SD.cpp: 'if (root.isOpen()) {root.close();}'

// RTC Timer stuff
#include <Time.h>
#include <TimeAlarms.h>
#include <Wire.h>
#include <DS1307RTC.h>

// Thermistor stuff
#include <ThermistorSensor.h>

// LCD stuff
#include <LiquidCrystal_I2C.h>

// Thermistor Setup
// which analog pins to connect
#define THERMISTOR_PIN_A A0 // Indoor
#define THERMISTOR_PIN_B A1 // Outdoor

LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display
char lcd_line_buffer[17]; // Single line buffer for writing to LCD


int tempA;
int tempB;

// Thermistor objects and temperature variables
ThermistorSensor thermistorA(THERMISTOR_PIN_A);
ThermistorSensor thermistorB(THERMISTOR_PIN_B);

File myFile;

void readFileToSerial(char* filename)
