-127 means the sensor was not detected. Check the cables and connections. This thread has some other pointers as well Please Help me!!!! DS18B20 I2C LCD board problem - Sensors - Arduino Forum Take note of the pins you are using for the LCD and the temp sensor as the may be overlapping.