     }
     
     currRIMS = RIMSthermocouple.readFarenheit();
-    if (isnan(currRIMS))
+    if (isnan(currRIMS) | (currRIMS < 55) | (currRIMS > 220))
     {
       currRIMS = 0;
     }

          elementOff(0);
        }
        //now turn on RIMS
        if ((digitalRead(RIMSSSR) == LOW) && (currentMillis - previousMillis > RIMSoffDuration))
        {
          elementOn(1);
        }
	else
	{
          if ((currentMillis - previousMillis > RIMSonDuration) && (currRIMS > (setRIMS - 5)))
          {
            elementOff(1);


            }
          }
        }
        else
        {
          if (digitalRead(RIMSSSR) == LOW)
          {
            elementOn(1);
          }
        }
      }
      else
      {
