LCD not Showing Temperature

So i have this LCD that I’m using to Display Temperature But it won’t display the Temperature
Why? do I have to convert the Temperature to a String to be able to achieve this?

and if so how?
Here are my Components:


Here is my Code:


LiquidCrystal LCD(12,11,5,4,3,2);

int TempSensor = A0;
float BaseTemp = 20.0;

void setup() {

void loop() {
  int SensorVal = analogRead(TempSensor);
  float Voltage = (SensorVal/1024.0) * 5.0;
  float Temperature = (Voltage - .5) * 100;


When you don't understand how to use a library, it's a good idea to study the examples that come with it. You can find them at File > Examples > LiquidCrystal. There are even tutorials to go with them:

I think you would learn a lot by studying the HelloWorld example.


Write a character to the LCD.

You're not writing a character, so why would you use LCD.write()?

What you're doing in this code is writing the character that corresponds to the ASCII code of the integer value of the temperature, surely not what you want to do.

Instead, you should use print():

You're also probably going to want to use setCursor():

Thanks, man I really appreciate it!

Also thanks for Linking Some examples really appreciate it I'll check them out

You're welcome. I'm glad if I was able to be of assistance. Enjoy!