     if (EEPROM.read(address) != value) {
         EEPROM.write(address, value);
     }
-}+}

            digitalWrite(relayAC, LOW);
            digitalWrite(relayHeat, LOW);
    }
}



    tempC = (voltage - 0.5) * 100.0;
    tempF = (tempC * (9.0/5.0) + 32.0);

#if defined(SERIALDEBUG)
    Serial.print(F("voltage: "));
    Serial.print(voltage);
    Serial.print(F("   deg C: "));
    Serial.print(tempC);
#endif

    return int(tempF * 10.0);
}
