Help modifying DS18B20 sample code to activate a relay

I just renamed the function to getTemperature.

I would like to have float collector = printTemperature(insideThermometer); not need a separate function to work. I'd like to be able to say: float collector = value of sensor1, but my lack of programming knowledge inhibits this. For what I'm doing it doens't really bother me that much as it's functional. Although it would be nice to know how to do it.

For the relay control I got one of these: Information.com People Search | Free People Finder & White Pages - Locate Anyone should be good to go once that gets here.