       digitalWrite(AIRING_PIN, LOW);
     }
 
-    server.send(200, "text/plain", "{furnace: " + String(airing) + "}");
+    server.send(200, "application/json", "{airing: " + String(airing) + "}");
   });
 
   server.on("/getFurnace", []() {
-    server.send(200, "text/plain", "{furnace: " + String(furnace) + "}" );
+    server.send(200, "application/json", "{furnace: " + String(furnace) + "}" );
   });
 
   server.on("/putFurnace", []() {

void handlePutCurrentSet() {

  if (server.hasArg("plain") == false) {

    server.send(200, "text/plain", "Body not received");
    return;

  }

  autoMode = true;

  String message = "Body received:\n";
  message += server.arg("plain");
  message += "\n";

  server.send(200, "text/plain", message + " autoMode: " + String(autoMode));
}

void setup(void) {

  server.on("/getCurrentWeather", []() {
    float currentHumidity = dht.readHumidity();
    float currentTemperature = dht.readTemperature();
    server.send(200, "application/json", "{temperature: " + String(currentTemperature) + ", humidity: " + String(currentHumidity) + "}");
  });

  server.on("/putCurrentSet", handlePutCurrentSet);

  server.on("/getCurrentSet", []() {
    server.send(200, "application/json", "{temperature: " + String(temperatureToLaunch) + ", humidity: " + String(humidityToLaunch) + "}");
  });

  server.on("/getAiring", []() {
    server.send(200, "application/json", "{airing: " + String(airing) + "}" );
  });

  server.on("/putAiring", []() {
