 
     delay(500);
 }
-
-
-
-
-

  switch (result)
  {
    case IDDHTLIB_OK:
      status = "OK";
      break;
    case IDDHTLIB_ERROR_CHECKSUM:
      status = "Checksum";
      break;
    case IDDHTLIB_ERROR_ISR_TIMEOUT:
      status = "ISR Time out";
      break;
    case IDDHTLIB_ERROR_RESPONSE_TIMEOUT:
      status = "Response time out";
      break;
    case IDDHTLIB_ERROR_DATA_TIMEOUT:
      status = "Data time out";
      break;
    case IDDHTLIB_ERROR_ACQUIRING:
      status = "Acquiring";
      break;
    case IDDHTLIB_ERROR_DELTA:
      status = "Delta time to small";
      break;
    case IDDHTLIB_ERROR_NOTSTARTED:
      status = "Not started";
      break;
    default:
      status = "Unknown";
      break;
  }


      display_string_5x7(1,20,dispCS);

      readAM2321();
      status.toCharArray(dispCS, 20);
      display_string_5x7(6,1,dispCS);
    
//      sprintf(dispCS, "T: %0.1f, H: %0.1f    ", temp, humi);
//      display_string_5x7(3,1,dispCS);
      sprintf(dispCS, "%0.1fC, %0.1f%%    ", temp, humi);
      display_string_8x16(3,1,dispCS);
    }

    publishReadings();
