I wrote some code last year for a simple support library for 1-wire operations. More specifically the temperature probe you are having issues with.
A quick look at your code shows you are missing commands to properly read a temperature.
My code is available at: