I measured the temperature over the span of a day (around 12 hours) using the internal memory of the arduino and a 9 volt battery. I added an LED to the circuit just to make sure that the temperature was being measured. Temperatures were taken every 2 minutes and 1023 temperatures were taken, I then converted the voltage that the temperature sensor read into a temperature and corresponded the temperature to a tone. There were some glitches in the temperature measurements especially towards the end so the accurate temperatures are not that accurate. I altered the EEPROM Write code very slightly in order to use the internal memory of the arduino without having it plugged into my computer by adding the pin that the temperature sensor was using and changing the delay period. I also altered the EEPROM Read code in order to gather the measured temperatures and execute the sound on the speaker (code is below). I defined the language used as C++, because they don’t have the specific arduino code language on this website so some things are highlighted or a different color.

 #include <EEPROM.h>
 #define SPEAKER_PIN 5
 // start reading from the first byte (address 0) of the EEPROM
 int address = 0;
 byte value;
 int sensorPin = 0;
 int number = 0;
 void setup() {
 // initialize serial and wait for port to open:
 Serial.begin(9600);
 while (!Serial) {
 ; // wait for serial port to connect. Needed for native USB port only
 }
 pinMode(SPEAKER_PIN, OUTPUT);
 digitalWrite(SPEAKER_PIN, LOW);
 }</pre>
void loop() {
// read a byte from the current address of the EEPROM
value = EEPROM.read(address);
float voltage = value * 20.0;
voltage /= 1024.0;

Serial.print(address);
Serial.print("\t");
Serial.print(value, DEC);
Serial.println();
Serial.print(voltage); Serial.println(" volts");
float temperatureC = (voltage - 0.5) * 100;
Serial.print(temperatureC); Serial.println(" degrees C");
float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0;
Serial.print(temperatureF); Serial.println(" degrees F");
Serial.print(number);
if (voltage < 1) tone(SPEAKER_PIN, 900);
if(temperatureF < 90) tone(SPEAKER_PIN, 800);
if(temperatureF < 80 && temperatureF >= 70) tone(SPEAKER_PIN, 700);
if(temperatureF < 70 && temperatureF >= 60) tone(SPEAKER_PIN, 600);
if(temperatureF < 60 && temperatureF >= 55) tone(SPEAKER_PIN, 500);
if(temperatureF < 55 && temperatureF >= 50) tone(SPEAKER_PIN, 400);
if(temperatureF < 50 && temperatureF >= 45) tone(SPEAKER_PIN, 300);
if(temperatureF < 45 && temperatureF >= 40) tone(SPEAKER_PIN, 200);
if(temperatureF < 40) tone(SPEAKER_PIN, 100);

address = address + 1;
if (address == EEPROM.length()) {
address = 0;
}

delay(190);

}
<pre>