     JsonObject& data = (*root)["d"];
     //JsonObject& info = (*root)["info"];
 
-    data["time"] = sensorsData->get("time");
-    data["temperature"] = sensorsData->get("temperature");
-    data["pressure"] = sensorsData->get("pressure");
-    data["humidity"] = sensorsData->get("humidity");
-    data["ppm"] = sensorsData->get("ppm");
+    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);
 

  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);

  displayTime();

  tmElements_t tm;
  Clock.read(tm);
  Serial.print("RTC:      ");
  displayTime(tm);
  Serial.print("Timer Temp: "); Serial.println(Clock.temperature()/4.0);

  si7021_thc thc = sensor.getTempAndRH();
  double t = thc.celsiusHundredths / 100.0;
