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:

TMP36
LCD

Here is my Code:

#include<LiquidCrystal.h>

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

int TempSensor = A0;
float BaseTemp = 20.0;

void setup() {
  Serial.begin(9600);
  LCD.begin(16,2);
}

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

  LCD.write(Temperature);
  delay(500);
    
}

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:
https://www.arduino.cc/en/Tutorial/LibraryExamples#liquid-crystal
I think you would learn a lot by studying the HelloWorld example.

From https://www.arduino.cc/en/Reference/LiquidCrystalWrite:

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!
:slight_smile:

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!
Per