The problem I have is an initialization issue. In the beginning of the sketch, I read the stored setPoint from the "EEPROM" but the very first time, the contents may be garbage and give a "nan". How can I tell the program that it is a first-time run, so that it does not read the EEPROM the very first time it is executed?
The problem I have is an initialization issue. In the beginning of the sketch, I read the stored setPoint from the "EEPROM" but the very first time, the contents may be garbage and give a "nan". How can I tell the program that it is a first-time run, so that it does not read the EEPROM the very first time it is executed?