#include <DallasTemperature.h>
#include <OneWire.h>
const byte One_Wire_Bus=8;
OneWire onewire(One_Wire_Bus);
DallasTemperature sensor(&onewire);
float Celsius;
int relaypin=7;
void setup() {
sensor.begin();
Serial.begin(9600);
pinMode(relaypin, OUTPUT);
}
void loop() {
sensor.requestTemperatures();
Celsius=sensor.getTempCByIndex(0);
delay(1000);
Serial.println(Celsius);
if (Celsius>=110){
digitalWrite(relaypin, LOW);
delay(1000);
}
else{
digitalWrite(relaypin, HIGH);
}
}