Help with DS18B20 sensors running relay and logging data

Hi guys im interested in doing a small scale version of this.

Take a look at: http://arduino-info.wikispaces.com/Brick-Temperature-DS18B20

After you have that running, add a variable to hold the value returned by
sensors.getTempCByIndex(0)

And then use an "if" statement like ;
if (temperature > toohot) {//do something } ;