void setup() {
//Serial.begin (9600);
pinMode(13, OUTPUT);
pinMode(12, OUTPUT);
// put your setup code here, to run once:
}
void loop() {
float celsius = 1 / (log(1 / (1023. /analogRead(A0) -1 ))/ 3950 + 1.0 / 289.15) - 273.15;
// Serial. print(celsius);
// Serial. println( "kraadi");
// delay (1000);
if ( celsius < 0 ) {digitalWrite(13, HIGH); digitalWrite(12, LOW);}
if ( celsius > 40 ) {digitalWrite(12, HIGH); digitalWrite(13, LOW);}
if (celsius >=0 && celsius <= 40 ) {digitalWrite(12, LOW); digitalWrite(13, LOW);}
}