Read through this. There is a working version of code in there that can probably be adapted to your Photon.
https://community.blynk.cc/t/thermal-probes-ds18b20/14164/