 	#endif
 		rtc.begin();
 	if (! rtc.isrunning()) {
-		Serial.println("RTC is NOT running!");
+
 	}
-	/*Accel Setup*/
-	if(!accel.begin())
-	{
-		Serial.println("ADXL345 Not Detected");
+
+  /*Accel Setup*/
+	if(!accel.begin()){
 	}
 	accel.setRange(ADXL345_RANGE_16_G);
 
+  /*SDcard Setup*/
 	if (!SD.begin(4)) {
-	Serial.println("initialization failed!");
-	return;
 	}
 	dataFile = SD.open("datatest.csv", FILE_WRITE);
-	dataFile.print("Year");
+  dataFile.println(",");
+  dataFile.print("Year");
 	dataFile.print(",");
 	dataFile.print("Month");
 	dataFile.print(",");

    status = pressure.getTemperature(T);
    if (status != 0)
    {
      Serial.print("temperature: ");
      Serial.print(T,2);
      Serial.print(" deg C, ");
      Serial.print((9.0/5.0)*T+32.0,2);
      Serial.println(" deg F");

      status = pressure.startPressure(3);
      if (status != 0)

//Imports
#include "Adafruit_ADXL345_U.h" //Accelrometer
#include "Adafruit_Sensor.h" //Adafruit Products
#include <SFE_BMP180.h> //Barometer
#include "RTClib.h" //RTC
#include "Wire.h" //Wire for I2C
#include <SPI.h> //SPI for SD
#include <SD.h> //SDcard
#include <Adafruit_TSL2561_U.h> //Luminosity Sensor

/*Deffinations*/
int ledPin = 5; //Pin for LEDs

 //Accel
 #define DS1307_ADDRESS 0x86;//Need to get updated I2C Address
 byte zero = 0x00; //Needed as a workaround for issue #537 RTC Support
 Adafruit_ADXL345_Unified accel = Adafruit_ADXL345_Unified(12345);

 //RTC
 RTC_DS1307 rtc;

 //Pressure
 SFE_BMP180 pressure;
 #define ALTITUDE 254 //ALTITUDE of Newark

 //SDcard
 File dataFile;

 //UV
 int UVOUT = A0; //Output from the sensor
 int REF_3V3 = A2; //3.3V power on the Arduino board

 //Luminosity
 Adafruit_TSL2561_Unified tsl = Adafruit_TSL2561_Unified(TSL2561_ADDR_FLOAT, 12345);
 //Magneto
 #define address 0x1E //0011110b, I2C 7bit address of HMC5883
//Humidity
int HIH4030_Pin = A3;

/*End Deffinations*/


void setup()
{
  /*Serial Setup*/
	Serial.begin(9600);
  Wire.begin();

  /*Led Setup*/
  pinMode(ledPin, OUTPUT);

	/*Barometer Setup*/
	if (pressure.begin())
  {
  }

	/*RTC Setup*/
