   displayTime();
 
   tmElements_t tm;
-  RTC.read(tm);
+  Clock.read(tm);
   Serial.print("RTC:      ");
   displayTime(tm);
-  Serial.print("Timer Temp: "); Serial.println(RTC.temperature()/4.0);
+  Serial.print("Timer Temp: "); Serial.println(Clock.temperature()/4.0);
 
   si7021_thc thc = sensor.getTempAndRH();
   double t = thc.celsiusHundredths / 100.0;

  sensorsData = &root;

  char dirName[12];
  sprintf(dirName, "/%.4i/%.2i/%.2i", tmYearToCalendar(tm.Year), tm.Month, tm.Day);
  char fileName[25];
  sprintf(fileName, "/%s/%.2i.csv", dirName, tm.Hour);

  File dataFile;
  if(!SD.exists(fileName)){
    if(!SD.mkdir(dirName)){
      Serial.printf("Failed to create directory %s\r\n", dirName);
      return;
    }
    dataFile = SD.open(fileName, O_WRITE | O_CREAT);

    JsonObject& data = (*root)["d"];
    //JsonObject& info = (*root)["info"];

    data["time"] = (*sensorsData)["time"].as<long>();
    data["temperature"] = (*sensorsData)["temperature"].as<double>();
    data["pressure"] = (*sensorsData)["pressure"].as<double>();
    data["humidity"] = (*sensorsData)["humidity"].as<int>();
    data["ppm"] = (*sensorsData)["ppm"].as<int>();

  }, PUBLISH_EVERY);

