 const int LM35 = A0;       // Temperature sensor
 
 File dataFile;
-unsigned long int time;
+unsigned long int ttime;
 float temp;
 
 const uint8_t BASE_NAME_SIZE = sizeof(FILE_BASE_NAME) - 1;

    digitalWrite(rLed, LOW);
    return;
  }
  Serial.print(F("opened: "));
  Serial.println(fileName);
  digitalWrite(gLed,HIGH);
  delay(2000);

    delay(250);
  }
  File dataFile = SD.open(fileName, FILE_WRITE);
  dataFile.print(ttime);
  dataFile.print(",");
  dataFile.print(temp);
  dataFile.close();

  Serial.print("The Temp is: ");
  Serial.println(temp);
  Serial.print("The time is: ");
