There are stacks of examples of using a DS1820 sensor with a PIC on the internet, including lots of samples within the sections of this forum ( I should know, I've been given a lot of help with a project using these devices).
Use Google or the "search" function top right - enter DS18B20 as the search string...
Bookmarks