 
 //------------------------------------------------------------------------------
 void handle_thresholds(RestRequest *request, EthernetClient *client) {
-  char content[32] = { '\0' };
-  char buffer[16] = { '\0' };
+  char content[128] = { '\0' };
+  char buffer[128] = { '\0' };
   strcat(content, "{");
   sprintf_int_field(buffer, true, "light", sensorThresholds.light);
   strcat(content, buffer);  
   sprintf_int_field(buffer, false, "door", sensorThresholds.door);
+  strcat(content, buffer);  
+  sprintf_float_field(buffer, false, "minTempInsideC", sensorThresholds.minTempInsideC, 100);
+  strcat(content, buffer);  
+  sprintf_float_field(buffer, false, "maxTempInsideC", sensorThresholds.maxTempInsideC, 100);
   strcat(content, buffer);  
   strcat(content, "}");
   restServer.generate_response(client, content);

void default_sensor_thresholds() {
  sensorThresholds.light = 50;
  sensorThresholds.door = HIGH;
}

//------------------------------------------------------------------------------

  if (sensorData.hall == sensorThresholds.door) {
    status = HIGH;
  }
  if (sensorData.tempInsideC < sensorThresholds.minTempInsideC) {
    status = HIGH;
  }
  if (sensorData.tempInsideC > sensorThresholds.maxTempInsideC) {
    status = HIGH;
  }
  return status;
}

