Introduction: Measure the Temperature and Show It on a LCD Display

Picture of Measure the Temperature and Show It on a LCD Display

I made a little arduino sketch, that displays the temperature on a LCD display measured by a LM35. I used a 16X1 LCD Display. The Code is quite easy and can send the value via serial connection, too.

What you need:

Arduino Board
LCD Display
LM35 temperature sensor
resistor (for backlight)

Step 1:

Picture of

Here’s my source coude (based on the example LCD code on

#include <LiquidCrystal.h>

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
#define LCD_CLEAR 0b00000001 // 0×01
float temp;
int tempPin = 0;

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

void loop() {
temp = analogRead(tempPin);
temp = temp * 0.48828125;
lcd.setCursor(0, 0);
lcd.print(” C”);




Y987ousef (author)2015-03-23

I need your help on this project please

jani.kljun (author)2015-01-20

why give me these errors :

This report would have more information with

"Show verbose output during compilation"

enabled in File > Preferences.

Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno"

sketch_jan20a:21: error: stray '\' in program

sketch_jan20a:21: error: stray '\' in program

sketch_jan20a.ino: In function 'void loop()':

sketch_jan20a:21: error: 'u201dC' was not declared in this scope

Qtronik made it! (author)2014-02-03

Nice! I personally coupled this type of LCD and I found that is divided in 2 rows! Second row started a digit 9...

The best librarie for using different rows and column LCD is here:

My personal Arduino projects will soon be published... Automatica Aqua

EET1982 (author)2013-02-13

Hi. Very cool project. I will be making this soon. May I ask why the 5v is pulled to the outer rail if nothing connects to the rail?

amandaghassaei (author)2012-11-14

very nice, are you going to use this for a larger project?

knuppel (author)amandaghassaei2012-11-16

i did something like this:

knuppel (author)amandaghassaei2012-11-15

In used it to display the temperature on the computer (via processing) and then, when the computer is online it sends the temperature to a webserver,and the temperature can be seen in the internet.

About This Instructable




More by knuppel:Pimp your Korg Monotribe: MIDI in for the Korg Monotribe8 Step – Step SequencerMeasure the temperature and show it on a LCD display
Add instructable to: