Welcome!
When you post code (or long lists) please use "code tags". They can be inserted into the edit window using the # button.
Is the "g-switch" a switch or a button? In other words, once it triggers, does it get "stuck on"?
Do you have a pull-up or pull-down resistor on pin 2?
Should the following print whenever the error occurs or only after the g-switch triggers...
Serial.println("Thermocouple Error!!"); // Temperature is -1 and there is a thermocouple error
This should get the Sketch working a bit better...
// digitalRead (buttonPin); // Remove this line
if ([glow]digitalRead (buttonPin)[/glow]== HIGH)
[glow]{[/glow]
Serial.print("nose temp: ");
Serial.println( temperature ); // Print the temperature to Serial
[glow]}[/glow]
digitalRead is a function that returns a LOW or HIGH values based on the state of the pin. The value returned from the digitalRead function is used in the if-statement. The extra braces are the then-clause of the if-statement. Without the braces only the statement immediately after the "if" is the then-clause.