   // If the file opened okay, write to it:
   if (dataFile) {
     //Serial.print("Writing to test.txt...");
-    dataFile.println("Logging: row, lat, lon, time, sound, brightness, vibration, pressure.");
+    dataFile.println("Logging: row, lat, lon, time, sound, brightness, vibration, altitude.");
     // close the file:
     dataFile.close();
     //Serial.println("done.");

//Barometer variables
float pressure;
float atm;
float altitude;
Barometer myBarometer;

//Accelerometer variables

        dataFile.print(seperator);
        dataFile.print((abs(Axyz[0]) + abs(Axyz[1]) + abs(Axyz[2])), 2);
        dataFile.print(seperator);
        dataFile.println(myBarometer.calcAltitude(myBarometer.bmp085GetPressure(myBarometer.bmp085ReadUP())));

        // close the file:
        dataFile.close();

        rowCounter = rowCounter + 1;
        Serial.println(F("done writing."));
      } else {
        // if the file didn't open, print an error:
        Serial.println(F("error opening file"));
      }

    }
  } else {
    digitalWrite(LED, LOW);   // turn the LED on (HIGH is the voltage level)
    Serial.println(F("OFF"));

  }

}
