     float closest = abs(temperature_history[BARO_HISTORY_LENGTH - 1] - average);
     temperature = temperature_history[BARO_HISTORY_LENGTH - 1];
     #ifdef BARO_DEBUG_ON
-    debug_info("Pressure " + String(BARO_HISTORY_LENGTH) + ": ", temperature_history[BARO_HISTORY_LENGTH - 1]);
+    debug_info("Temperature " + String(BARO_HISTORY_LENGTH) + ": ", temperature_history[BARO_HISTORY_LENGTH - 1]);
     #endif
     for(int_one = BARO_HISTORY_LENGTH - 2; int_one >= 0; int_one--)
     {
       #ifdef BARO_DEBUG_ON
-      debug_info("Pressure " + String(int_one) + ": ", temperature_history[int_one]);
+      debug_info("Temperature " + String(int_one) + ": ", temperature_history[int_one]);
       #endif
       if(abs(temperature_history[int_one] - average) < closest)
       {

      //  Need to make note of time of most recent state stored in eeprom
      //
      
      last_detailed_eeprom_write  = (unsigned int) EEPROM.read(DETAILED_STATE_START_LOCATION + (detailed_state_count * DETAILED_STATE_DATA_WIDTH) + 3);
      last_detailed_eeprom_write += (unsigned int) EEPROM.read(DETAILED_STATE_START_LOCATION + (detailed_state_count * DETAILED_STATE_DATA_WIDTH) + 2) * 256;
      last_detailed_eeprom_write += (unsigned int) EEPROM.read(DETAILED_STATE_START_LOCATION + (detailed_state_count * DETAILED_STATE_DATA_WIDTH) + 1) * 65536;
      last_detailed_eeprom_write += (unsigned int) EEPROM.read(DETAILED_STATE_START_LOCATION + (detailed_state_count * DETAILED_STATE_DATA_WIDTH) + 0) * 16777216;
  }
  
  //

{
  latest_message_to_send = "";
  if(detailed_state_count < 1)
  {    return;
  }
  
  int which_location = DETAILED_STATE_START_LOCATION + (DETAILED_STATE_DATA_WIDTH * (detailed_state_count - 1));
