Error while including <DallasTemperature.h>

There are many versions of the library on that page. Which one did you download?

The simple example sketch includes OneWire.h. Yours does not. That's a clue...