 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";
+  String message = server.arg("plain");
 
-  server.send(200, "text/plain", message + " autoMode: " + String(autoMode));
+  String humidity = getTemperature(message, 0);
+  String temperature = getTemperature(message, 1);
+
+  temperatureToLaunch = temperature.toFloat();
+  humidityToLaunch = humidity.toFloat();
+
+  server.send(200, "application/json", "{temperature: " + temperature + ", humidity: " + humidity + "}");
+
 }
 
 void setup(void) {

boolean airing = false;
boolean furnace = false;

void handleRoot() {
  server.send(200, "text/plain", "hello from esp8266!");
}

  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", []() {
