 This software is released under the MIT license. See the attached LICENSE file for details.
 */
 #include <Wire.h>
+#include <SPI.h>
 #include <stdio.h>
-#include "Adafruit_MAX31855.h"
+#include "Nanoshield_Thermocouple.h"
 #include "Nanoshield_EEPROM.h"
 #include "Nanoshield_RTC.h"
 
 // Define the temperature sampling interval in milliseconds
-#define SAMPLING_INTERVAL 60000
+#define SAMPLING_INTERVAL 10000
 
 // EEPROM record size in bytes
 #define RECORD_SIZE 9

// Maximum number of records
#define MAX_RECORDS 3640

Adafruit_MAX31855 thermocouple(13, 8, 12);
Nanoshield_EEPROM eeprom(0, 0, 0);
Nanoshield_RTC rtc;
unsigned int nextRecord;

void loop()
{
  // Keep saving records to EEPROM and printing the into the serial port
  thermocouple.read();
  rtc.read();
  saveRecord(
    nextRecord,
