   for (int i=0; i < num_probes; i++) {
     String res = read_atlas(atlas[i]);
     Serial.print("\t" + res);
+    outputFile.print("\t" + res);
   }
   Wire.flush();
 
+  outputFile.println();
+  outputFile.flush();
   Serial.println();
   delay(5000);
 }

  unsigned long time = millis();
 String date = rtc_time(); 
 Serial.print(date);

  while ((millis() - time) < 1500) {
    delay(1501-(millis() - time));

int atlas[] = {0x61, 0x62, 0x63, 0x64};
int num_probes = 4;

// our SS pin on the micro is at output 17
//byte SS = 17;
File outputFile;

void setup() {
  Serial.begin(9600);
  Wire.begin();
  rtc.begin();
  if (!SD.begin(SS)) {
    Serial.println("SD card initialization failed!");
    return;
  }
  outputFile = SD.open("output.txt", FILE_WRITE);
  Serial.flush();
  Serial.println(F("\n\nDate\tTime\tDO\tORP\tpH\tEC\tTDS\tSAL\tSG"));
}
