Arduino | Beginners | UTSource

Arduino Temperature Sensor – Arduino Beginners Project

This is an Arduino beginners project for people who are getting started with Arduino. In this project, we will use an LM35 temperature sensor to sense the temperature of an object. 

Before getting started, let us understand what we are dealing with. Let us take a closer look at the LM35 Temperature sensor. 

LM35 Temperature Sensor Explained

LM35 Temperature Sensor

The Temperature Sensor LM35 is easy to use temperature sensor that will provide us with an output voltage that is proportional to the temperature of its surroundings. 

This little temperature sensor have 3 pins.

One for input voltage that can tolerate a voltage between 4 V and 30 V, a Gnd pin where we connect 0 V and an output voltage pin. This ease of use make this the best Arduino Temperature Sensor available in the market.

Image result for utsource logo

Sponsor Link

This Project is Sponsored by UTSource. UTSource is a professional electronic components supplier.

Technical Specifications of Temperature Sensor LM35

  • Calibrated Directly in Celsius (Centigrade)
  • Linear + 10-mV/°C Scale Factor
  • 0.5°C Ensured Accuracy (at 25°C)
  • Rated for Full −55°C to 150°C Range
  • Suitable for Remote Applications
  • Low-Cost Due to Wafer-Level Trimming
  • Operates From 4 V to 30 V
  • Less Than 60-µA Current Drain
  • Low Self-Heating, 0.08°C in Still Air
  • Non-Linearity Only ±¼°C Typical
  • Low-Impedance Output, 0.1 Ω for 1-mA Load

Temperature Sensor LM35 Pinout

LM35 Temperature Sensor Pinout

Getting Started with Arduino Temperature Sensor

Components Needed

  • Arduino
  • LM35 Temperature Sensor
  • Bread Baord


Simply Connect your LM35 temperature sensor to your Arduino as shown below.

  • Vin of LM35 —-> 5 V out of Arduino
  • Gnd of LM35 —–> 0V of Arduino
  • Vout of LM35 —–> A0 of Arduino

Now connect your Arduino to your PC. Make sure the Arduino board is being detected by your PC.

Now copy the below code to your Arduino IDE

float t0, tc ;
void setup() {
void loop() {
t0 = analogRead(A0); // read analog value from arduino temperature sensor
tc = t0*0.48828; // convert the analog volt to degree celcius
Serial.print("Analog Temperature Reading= ");
Serial.print(t0); // display voltage value
Serial.print("Current Temperature Reading= ");
Serial.print(tc); // display temperature value

Make sure the right board and port are selected. Now all you have to do is upload the code to your Arduino Temperature Sensor.

Once the code is uploaded, open up the serial monitor. You will see the values being populated. 

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Hey there!

Forgot password?

Forgot your password?

Enter your account data and we will send you a link to reset your password.

Your password reset link appears to be invalid or expired.


Processing files…