Hi @krvarma
That’s great and I am glad you got it working!
I also wanted to point out that the Spark team is working on building in a one wire library and @Dave posted some preliminary code over here:
So someday all this will be built-in and easier to use! I love my DS18B20’s: they are easy to use and very accurate.