There's an Arduino library for "one wire" devices like the DS18B20.
http://playground.arduino.cc/Learning/OneWire