DS18B20 with Photon [SOLVED]

This code won't work on a Photon.

Have a look here
Libraries to Update for the Photon - #50 by Dick

There are some libraries on Particle Build using direct (fast) pin access that still need to be ported for the Photon, but due to some unexpected circumstances the necessary firmware/build farm updates had to be postponed several times, so you might have to alter the code yourself, to make it work on the Photon.

But there are also some pretty hardware specific error messages, that might not be as easy to correct.

The newest GitHub version of the OneWire lib seems to be ported already and can be found here
GitHub - Hotaman/OneWireSpark: Provides support for the Dallas One Wire protocol on Particle devices.


BTW: Welcome to the Particle world :wink: