In this Arduino project I’m sharing how to a LM35 Interfacing with Arduino UNO to analyses the temperature using serial monitor. When the power on the LM35 send voltage differences to the Arduino board and Arduino will displaying the real-time temperature in degree Celsius. To view the values you need to connect the board to PC or computer and open serial monitor in Arduino IDE software.
LM35 Interfacing with Arduino Connection Diagram

LM35 Pinout

Connection
The second pin of LM35 is “Vout” which is connected to the Arduino UNO analogue pin A0. The positive and negative Pins of LM35 is connecting to the Arduino 5V and Gnd connections. To power on the circuit you need to connect the board to your PC or laptop using a USB cable. The same time you can monitor the temperature in Celsius using the serial monitor.
Programming Code
Working of Code
This circuit is designed to measure temperature using an LM35 temperature sensor. For better reliability and compact design, this temperature monitoring circuit can also be implemented using professional PCB assembly methods. PCB assembly helps create a stable and organized hardware setup for Arduino-based sensor projects.
The sensor out pin is connected to analog pin A0 of the Arduino UNO. The LM35 outputs an analog voltage that is directly proportional to the temperature in Celsius.
It outputs 10 millivolts (0.01 volts) for every degree Celsius. The Arduino reads this analog voltage using its analogRead() function, which converts the input voltage into a digital value between 0 and 1023. This value is then converted back to voltage by multiplying it with “(5.0 / 1023.0)”, where 5.0 represents the reference voltage of the Arduino.
Once the voltage is calculated, it is converted into temperature in Celsius by multiplying it by 100, since 1°C = 10mV for the LM35. The resulting temperature is then printed to the Serial Monitor using “Serial.print()” and “Serial.println()”, this allowing real-time temperature readings to be observed on a connected computer display. The “delay(1000)” function pauses the loop for one second between readings. This will providing a steady stream of updated temperature values at one-second intervals.



