Starting out with the MEGA 2560

Try this code. It prints in the serial monitor, not the LCD

//Thermometer with thermistor

/*thermistor parameters:
 * RT0:  100 000 Ω
 * B: 4190 K +- 0.75%
 * T0:  25 C
 * +- 5%
 */

//These  values are in the datasheet
#define RT0 100000   // Ω
#define B 4190     //  K
//--------------------------------------


#define VCC 5    //Supply  voltage
#define R 100000  //R=100KΩ

//Variables
float RT, VR, ln, TX,  T0, VRT;

void setup() {
  Serial.begin(9600);
  T0 = 25 + 273.15;                 //Temperature  T0 from datasheet, conversion from Celsius to kelvin
}

void loop() {
  VRT = analogRead(A0);              //Acquisition analog value of VRT
  VRT  = (5.00 / 1023.00) * VRT;      //Conversion to voltage
  VR = VCC - VRT;
  RT = VRT / (VR / R);               //Resistance of RT

  ln = log(RT / RT0);
  TX = (1 / ((ln / B) + (1 / T0))); //Temperature from thermistor

  TX =  TX - 273.15;                 //Conversion to Celsius

  Serial.print("Temperature:");
  Serial.print("\	");
  Serial.print(TX);
  Serial.print("C\	\	");
  Serial.print(TX + 273.15);        //Conversion to Kelvin
  Serial.print("K\	\	");
  Serial.print((TX * 1.8) + 32);    //Conversion to Fahrenheit
  Serial.println("F");
  delay(500);

}