DS18b20 temp on the nRF51 Dongle

Hello, I am working on a project that involves the implementation of a wireless temperature sensor. so, i bought the DS18b20 digital temp sensor and tried to apply the code in the following link developer.mbed.org/.../ to get the sensor working on the nRF51 Dongle. my question is whether or not that is possible. after wiring the temperature sensor to the board and running the code, i get the following message through the serial monitor "No DS18b20 detected". i am sure that does not mean the sensor is not working because i ran a similar program on the Arduino Uno and got good results. I am new to working on the mbed boards. any help would be appreciated.