int temp = A5; int digitaloutput = 8; void setup () { pinMode(digitaloutput, OUTPUT); Serial.begin(9600); } void loop () { int readtempreature = analogRead (temp); Serial.println (readtempreature); delay(1000); if (readtempreature > 200) { digitalWrite(digitaloutput,HIGH); } else { digitalWrite(digitaloutput,LOW); } }