DS18B20 Digital Temp Sensor Threshold

Hey Guys,

I have a DS18B20 Temp sensor that I will be using to control some heat trace. I have the DS18B20 hooked up to the Arduino Uno and i'm able to read the temp and display it onto an LCD screen. The problem is i'm not sure how to use a temp threshold to tiger the heat trace on and off. I tried this...

If (Whole > 26);
digital.Write ("Freeze Protection On");

Any suggestions are appreciated. Thanks guys.


It would help to see all the code (in code tags) but you should not have a semicolon at the end of the first line.


That actually was exactly the problem. Thanks.