The following example works just fine

http://www.rentron.com/PICX4.htm


make sure yor DS1820 has +5V on Pin 3

If you are using the "Parasite Power" Option
you need to set DQ high right after starting the conversion

regards