I got it doing what i was after
#include <EEPROM.h>
#include "EEPROManything.h"
int ledPin = 9;
long previousMillis = 0;
long interval = 12600000;
void setup()
{
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
}
int currentAddress = 0;
float sensor = 0;
float celsius = 0;
float voltage = 0;
void loop()
{
sensor = analogRead (0);
voltage = (sensor*5000)/1024; // convert raw sensor value to millivolts
voltage = voltage-500; // remove voltage offset
celsius = voltage/10; // converts to celsius
currentAddress += EEPROM_writeAnything(currentAddress, celsius); //Writing to EEPROM
Serial.print (celsius); Serial.println(" degrees C");
Serial.print (currentAddress); Serial.println("EEPROM address");
if (currentAddress == 1024) //Checking the EEPROM isnt overflowing
delay (18000000);
delay (45000); //Delay of 45 seconds to ensure that EEPROM will not fill up from oversampling.
unsigned long currentMillis = millis();
if (currentMillis + (45000 - previousMillis) > interval){
previousMillis = currentMillis;
digitalWrite(ledPin, HIGH);
}
//Delay of 45 seconds to ensure that EEPROM will not fill up from oversampling.
} // end of loop