DHT to EEPROM

Ok so that all works and the hour's 3 readings read back correctly with another sketch I use for that.

TODO: Keep a counter of how many doEEPROMs it did, and then add a section to the sketch (under push button control) to read back only that many when I'm done logging.

Right now I read them back with this which is a bit messy...

/*
 * EEPROM Read
 *
 * Reads the value of each byte of the EEPROM and prints it 
 * to the computer.
 * This example code is in the public domain.
 */

#include <EEPROM.h>

// start reading from the required byte of the EEPROM
int address = 91; //to match the logger code
byte value;

void setup()
{
  // initialize serial and wait for port to open:
  Serial.begin(9600);
  /*while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }*/
}

void loop()
{

  
  // read 4 bytes for hour, minute, temp and humuid
  Serial.print(EEPROM.read(address), DEC);
  Serial.print(":");
    Serial.print(EEPROM.read(address+1), DEC);
  Serial.print("\t");
    Serial.print(EEPROM.read(address+2), DEC);
  Serial.print("\t");
    Serial.print(EEPROM.read(address+3), DEC);
  Serial.println();
  
  // advance to the next address of the EEPROM
  address = address + 4;
  
  // there are only 512 bytes of EEPROM, from 0 to 511, so if we're
  // on address 512, wrap around to address 0
  if (address == 512)
    address = 0;
    
  delay(500);
}