Making LCD Thermometer With Arduino and LM35/36





Introduction: Making LCD Thermometer With Arduino and LM35/36

Hello, everyone !!! I'm going to show you how to make an LCD thermometer with an Arduino UNO and a LM35/36 analog temperature sensor with jumpers and a breadboard.

This project is very good for people beginning with Arduino, it doesn't require any special engineering nor programming skills and it will take you less than 10 minutes to build it, once you have all the parts of course. :)

Step 1: Gathering the Parts

These are the part you need to build the thermometer:

  1. 1x Arduino UNO board
  2. 1x Breadboard
  3. 1x 16x2 LCD display
  4. 1x LM35 or LM36 analog temperature sensor
  5. 1x 10k potentiometer - for adjusting the brightness of the display*
  6. 19x Jumpers - to connect everything

They are also met in the official Arduino Starter Kit which you can order from Arduino's official web page here. Also you can buy them separately from the following stores: Adafruit, SparkFun, Aliexpress, Banggood, etc.

*If you dont have a 10k pot you can use 50k like me !

Step 2: Building the Thermometer

By following the Fritzing schematic above, plug the LCD in the breadboard and then connect it to the Arduino board with jumpers. After that plug the potentiometer and the sensor in the breadboard, connect the left and the right pins of the pot to ground and +5V and the middle one to the LCD display.

Then connect the sensor to ground and to +5V and to the Arduino but be very carefully, because if you connect it wrong the sensor will heat up to 280+ C(540 F) and might get damaged.

Once you have connected everything move on the next step.

Step 3: Programming the Arduino

To get it work you have to use one of the two codes below. Upload it to your Arduino using theintegrated development environment, for short IDE, which you can download from Arduino's official page and you are done !!!

If you don't see anything on the LCD or you see rectangles, turn the pot clockwise/anti-clockwise until you see the letter clear.

Now you have a thermometer and you can measure the temperature of the air around you, inside your house or outside.

The first code is from Gaige Kerns, and it can be used to read from LM36 or LM35. Thanks Gaige !!!

Also check out my new thermometer project here !!!

<p>// include the library code #include 

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// initialize our variables
int sensorPin = 0;
int tempC, tempF;
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
void loop() {
tempC = get_temperature(sensorPin);
tempF = celsius_to_fahrenheit(tempC);
lcd.print(tempF); lcd.print(" "); lcd.print((char)223); lcd.print("F");
int get_temperature(int pin) {
// We need to tell the function which pin the sensor is hooked up to. We're using
// the variable pin for that above
// Read the value on that pin
int temperature = analogRead(pin);
// Calculate the temperature based on the reading and send that value back
float voltage = temperature * 5.0;
voltage = voltage / 1024.0;
return ((voltage - 0.5) * 100);
int celsius_to_fahrenheit(int temp) {
return (temp * 9 / 5) + 32;
#include <LiquidCrystal.h>         

LiquidCrystal lcd(12, 11, 5, 4, 3, 2); //Digital pins to which you connect the LCD
const int inPin = 0;                   // A0 is where you connect the sensor
void setup()
void loop()
  int value = analogRead(inPin); // read the value from the sensor
  float millivolts = (value / 1024.0) * 5000; 
  float celsius = millivolts / 10;
  lcd.print((celsius * 9)/5 + 32); //turning the celsius into fahrehait

3 People Made This Project!


  • Epilog Challenge 9

    Epilog Challenge 9
  • First Time Author Contest 2018

    First Time Author Contest 2018
  • Sew Warm Contest 2018

    Sew Warm Contest 2018

We have a be nice policy.
Please be positive and constructive.




HI, I am making a thermometer as my project for my apprenticeship. I want to make it one that will measure body temperature and that you can program different temps into it. For example, if a persons body temperature calls between 36.5⁰C-37.2⁰C a green led will come on to say that it is normal. Any advice would be appreciated. Thank you

Hi , is it possible to add esp8266 between lcd and lm35 ?

i wanna monitor the temperature via web browser too

First of all, great project. But it doesn't work for me. By the way, i'am a newbie. Everything works, but as you can see on the pic, i'am in my living room an not in a sauna. So please, help.... Thank you.


Hey there,

I tried all the codes provided, yet I'm still getting a very non-reasonable pattern of readings like this 7.73, 0.00, 41.57, 3.97 ,0.00 ,41.78 ,3.97 ,0.00 ,40.82 ,6.34 ,0.00 ,25.78... in Celsius.

Any help?

Thanks in advance

I don't have an LCD so I'm viewing the results on the serial monitor, and so I made these connections. The arduino is powered by the laptop itself.


follow instructions to the letter and pin. problem!!! lcd backlight won't turn on!!!


Can you possibly also make this without the screen, but instead have the arduino measure the temperature of something periodically and have it gather data for you?

Search for project with data logger, one example here: