     // BMP085
     temperature = bmp085GetTemperature(bmp085ReadUT());
     pressure = bmp085GetPressure(bmp085ReadUP());
+    atm = pressure / 101325;
+    alti = calcAltitude(pressure);
+    //dtostrf(floatVar, minStringWidthIncDecimalPoint, numVarsAfterDecimal, charBuf);
     Serial.print("Temp: ");
-    Serial.print(temperature, 1);
+    Serial.print(temperature);
     Serial.println(" C");
     Serial.print("Pres: ");
-    Serial.print(pressure, 2);
+    Serial.print(pressure);
     Serial.println(" hPa");
+    Serial.print("Atmophere: ");
+    Serial.println(atm);
+    Serial.print("Altitude: ");
+    Serial.print(alti);
+    Serial.println("M");
     Serial.println();
 
-    // if the file is available, write to it:
     if (dataFile) {
-      dataString = String(timestamp) + " , " + String(temperature) + ", " + String(pressure);
-      dataFile.println(dataString);
-      // print to the serial port too:
-      //Serial.println(timestamp);
+      dataFile.print(timestamp);
+      dataFile.print(",");
+      dataFile.print(temperature);
+      dataFile.print(",");
+      dataFile.println(pressure);
     }  
     // if the file isn't open, pop up an error:
     else {

long b5; 
short temperature;
long pressure;

/*****************************************************************/


  }
  Serial.println("SD initiated!.");
  dataFile = SD.open("datalog.txt", FILE_WRITE);
  dataFile.println("miliseconds, temperature, pressure");
  
  turn_output_stream_on();
  //turn_output_stream_off();
