Weird behavior when reading temperature with DallasTemperature.h

A value of -127 indicates that the DS18B20 isn't wired to the Arduino correctly.
How have you wired the 3 pins of the sensor to the Arduino?
Do you have a 4.7k pullup resistor on the data line? Have you wired the sensor with parasite power or normal power?

Pete