The DS18B20 is a three pin transistor like chip, The Dallas Semiconductor Temperature Sensor has its own temperature and decoding library you can download the source code library at the download page.
Wiring the module to Arduino
Manual Wiring of the DS18B20 Chip
[crayon-6759fed1ab70d747592032/]
How to wire the DS18B20 Temperature Sensor Module on Arduino