 }
 
 void loop(){
-  time = millis();
+  ttime = millis();
   temp = (float(analogRead(LM35))*5/(1023))/0.01;
   if (temp > 28) {
     digitalWrite(rLed, HIGH);
     delay(250);
     digitalWrite(rLed, LOW);
     delay(250);
-  } 
+  }
   else {
     digitalWrite(gLed,HIGH);
     delay(250);

      digitalWrite(rLed, LOW);
      delay(1000);
      digitalWrite(rLed, HIGH);
      return;
    }
  }
  dataFfile = SD.open(fileName, FILE_WRITE);
  if (!dataFile) {
    Serial.println(F("open failed"));
    digitalWrite(rLed, LOW);
    delay(200);
    digitalWrite(rLed, HIGH);

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