top of page

Digital Thermometer using LCD and Arduino

Updated: May 10

In this project, you will learn to make a #digitalthermometer using Arduino and LCD.

Hardware Components - Digital Thermometer using LCD and Arduino |

1. Arduino Uno:

It is an open-source microcontroller board that can be programmed according to user requirements. Arduino Uno board is used for interfacing the input-output elements to construct a project.

Arduino Uno Board
Arduino Uno Board

2. Breadboard:

A breadboard is a simple rectangular board that has many holes shorted in a specific manner. It is the construction base for implementing electronic projects. The holes are used to connect circuit components like ICs, capacitors, potentiometers.


3. LCD Monitor:

Liquid Crystal Display is an electronically modulated display used to produce images in monochrome.

LCD Display
LCD Display

4. TMP36 Temperature sensor:

It is an analog temperature sensor with a wide temperature range. The left pin is for voltage input (2.7V to 5.5V) and, the pin on the right side is for the ground. The pin in the center is for the analog output.

TMP36 Temperature Sensor
TMP36 Temperature Sensor

5. Resistor- 220Ω:

The resistor is a passive electronic component that offers resistance to the current flowing through it. Here it is used to reduce the current flowing through the LCD. A 220Ω resistor is used in this project.

220Ω Resistor
220Ω Resistor

6. Potentiometer:

A potentiometer is a three-terminal device that acts as a variable resistor or a rheostat. One of the terminals has an adjustable contact that is used to set the resistance value. It is used to tune the circuit to get the desired output.


7. Jumper wires:

Jumper wires have connectors and pins that are used to connect different components on a breadboard.

Jump Wires
Jump Wires

Circuit Connections:

  1. The first pin in the LCD is the ground pin and is connected to the ground of the Arduino.

  2. The second pin in the LCD is the VCC pin which is connected to the 5V of the Arduino.

  3. V0 of the LCD to the wiper contact (2nd pin) of the potentiometer.

  4. Terminal 1 of the potentiometer is connected to the 5V and terminal 2 to the ground pin.

  5. Register select (RS) of the LCD to the D12 of the Arduino.

  6. RW(Read /Write) of the LCD to the ground.

  7. E (Enable) pin of the LCD to D11 of the Arduino.

  8. DB4 of the LCD to D5 of the Arduino.

  9. DB5 of the LCD to D4 of the Arduino.

  10. DB6 of the to D3 of the Arduino.

  11. DB7 of the LCD to D2 of the Arduino.

  12. LED anode pin of the LCD to a 220Ω resistor which in turn is connected to the 5V power supply of the Arduino.

  13. LED cathode pin of the LCD to ground.

  14. Power pin of the TMP36 temperature sensor to the 5V of the Arduino; Ground pin of the TMP36 to the ground of the Arduino.

  15. Vout of the TMP36 to the A0 of the Arduino.

Code - Digital Thermometer using LCD and Arduino

  • Liquidcrystal Library is included in the code and the LCD pins that are used are declared.

  • The variables used in the code are declared.

  • In the loop, the analog values from the sensor are assigned to "degree". It is divided by 1024 and is assigned to the "realdegree" variable.

  • This value will range from 0 to 1, hence it is multiplied by 5 to increase the range.

  • To get the actual temperature the realdegree value is multiplied by 100.

  • The cursor is set to the second line of the LCD.

  • Then, the degree Celsius value is converted to the Fahrenheit scale.

  • The Fahrenheit value is displayed as the output on the LCD.


The TMP36 temperature sensor works like a diode, i.e. the temperature changes with the change in the voltage at a defined rate. Here, the sensor reading is displayed in the LCD monitor using #Arduino.

Design the above circuit in the TinkerCad, type the code and simulate the circuit.

Vary the potentiometer and set it to the appropriate value. Then vary the temperature sensor to get the temperature values in Fahrenheit on the LCD screen.

Written by-

Name- Nagashree R Nadig

See also-

Follow us -

Please do follow us i.e #learnelectronicsindia to get daily updates about new blogs, videos, courses, quizzes, and contests.

Want us to help you with the projects, write your inquiry here - Order Projects

Check out our Free Arduino Projects Playlist - Arduino Projects

Check out our Free Raspberry Pi Projects Playlist - Raspberry Pi Projects

Check out our Free TinkerCAD Projects Playlist - TinkerCAD Projects

Check out our Free IoT Projects Playlist - IoT Projects

Check out our Free Home Automation Projects Playlist - Home Automation Projects

Check out our Free NodeMCu Projects Playlist - NodeMCu Projects

958 views2 comments

Related Posts

See All


Informative and concise! LearnElectronics India always delivers quality content.


Anushka Gupta
Anushka Gupta
Jul 19, 2023

This blog by Learn Electronics India is truly amazing! It provides a comprehensive and easy-to-understand guide on building a digital thermometer using an LCD and Arduino. The step-by-step instructions and clear explanations make it perfect for beginners like me. Thank you for sharing such valuable knowledge.

bottom of page