Using Millis with optical encoder

Have it now...

 if (temp == 100)
    
  {
    if (lastTempReading != 100)

That seems to have cleared it up a treat!