#include<LiquidCrystal.h>

const int sensor_pin = A1; 
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

void setup()
{
 lcd.begin(16, 2); 

}

void loop()
{
  int sensor_data = analogRead(sensor_pin);
  float voltage = sensor_data * (5.0 / 1024.0);
  
  float temperature_Celsius = (voltage - 0.5) * 100;

  float temperature_Fahrenheit = (temperature_Celsius * 9.0 / 5.0) + 32.0;
 
  delay(1000); 
  
  lcd.setCursor(0,0);          
  lcd.print("Temperature"); 
  lcd.setCursor(0,1);           
  lcd.print(temperature_Celsius);
  lcd.setCursor(5,1);
  lcd.print(char(178));
  lcd.print("C");
  
  lcd.print(" ");
  lcd.print(temperature_Fahrenheit);
  lcd.setCursor(12,1);
  lcd.print(char(178));
  lcd.print("F");
}
$abcdeabcde151015202530354045505560fghijfghij