DS18B20 Question

Hello, Im very new to arduino and have a question about the DS18B20. I have downloaded several programs and see it work but I dont understand some of the commands being used. Example would be DallasTemperature::toFahrenheit() or sensors.getTempC. Im trying to find a tutorial on these, hopefully Im making sense. I believe this information is in the dallastemperature.h or control library. I have a long way to go with c+.

post a code with in code tags and someone can tell you what it does

A lot of the tutorials are confusing. I think the conversion to F is done in the library, if that is what you are wondering.

http://www.hacktronics.com/Tutorials/arduino-1-wire-tutorial.html

This code derived therefrom is about as slim as you can get

/* Basic 2xDS18B20 code for serial monitor, bluetooth, Excel or w.h.y.
Derived from Hacktronics. Use their address sniffer and substitute your 
numbers. Use Hacktronics connections diagram. \
Resolution is 12bit by default, prints to two decimal places
Stay away from using parasite power
 85 means you haven't gotten a read yet, probably wrong order of commands
-127C means bad connection
*/

#include <OneWire.h>
#include <DallasTemperature.h>

#define ONE_WIRE_BUS 3   // Data wire is plugged into pin 3 on the Arduino

OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);

// Assign the addresses of your 1-Wire temp sensors.  
byte Thermo1[8] =  {0x28, 0x39, 0xFD, 0x50, 0x04, 0x00, 0x00, 0X69};
byte Thermo2[8] = {0x28, 0x09, 0xA9, 0xC0, 0x03, 0x00, 0x00, 0x95};

float Temp,Temp1,Temp2;  

void setup(){
  Serial.begin(9600);
  sensors.begin();
  delay(750);//Wait for newly restarted system to stabilize
}

void loop() {
 sensors.requestTemperatures();  // call readings from the addresses
  Temp1 = sensorValue(Thermo1);
  Temp2 = sensorValue(Thermo2);  

Serial.print(" Thermo1 = ");
Serial.print(Temp1);
Serial.print("     Thermo2 = "); 
Serial.println(Temp2);

delay(1000);
}

//sensorValue function
float sensorValue (byte deviceAddress[])
{
     Temp = sensors.getTempC (deviceAddress);
}

Thanks for all the help. Im starting to get some more control over the sensor as I learn more. Ill post the code but Im pretty much out for tonight. Did manage to open the dallas library using notepad, just notice alot of key words and I figured there was a tutorial somewhere. Usually the answer is front of me.......

ShanePB: Did manage to open the dallas library using notepad, just notice alot of key words an

I don't think that is such a good idea.

https://notepad-plus-plus.org/