  
   update_status(); 
   
+}
+
+//------------------------------------------------------------------------------
+void reset_buffers() {
+  content[0] = '\0';
+  buffer[0] = '\0';
 }
 
 //------------------------------------------------------------------------------


//------------------------------------------------------------------------------
void handle_healthcheck(RestRequest *request, EthernetClient *client) {
  char content[64] = { '\0' };
  char buffer[128] = { '\0' };
  strcat(content, "{");
  sprintf_string_field(buffer, true, "health", "OK");
  strcat(content, buffer);  

//------------------------------------------------------------------------------
void handle_sensors(RestRequest *request, EthernetClient *client) {
  while (!sensorData.available) {};
  reset_buffers();
  strcat(content, "{");
  sprintf_int_field(buffer, true, "status", check_status());
  strcat(content, buffer);  
