Arduino uno Temperature sensor module LM35 LM75

This project demonstrates how to measure temperature using an LM35 temperature sensor module with an Arduino Uno.

The LM35 sensor provides accurate temperature readings in Celsius, and the Arduino is used to display the temperature readings on the serial monitor.

Components Needed

Block Diagram

Hardware Wiring Explanation:

Connect the OUT pin of the LM35 sensor module to Arduino analog pin A0.

Connect the VCC pin of the sensor module to Arduino 5V.

Connect the GND pin of the sensor module to Arduino GND.

Software (Arduino IDE):

Open the Arduino IDE on your computer.

Write or paste the provided program into the IDE.

Select the correct board and port in the Arduino IDE under the Tools menu.

Upload the program to the Arduino.

Initialize the System:

Begin serial communication at a baud rate of 9600 in the setup function.

Read Sensor Values:

Read the analog voltage from the LM35 sensor using

Convert to Temperature:

Convert the analog value to temperature in Celsius using the formula

provided in the datasheet:

Display Readings:

Print the temperature to the serial monitor with the appropriate unit (°C).

Repeat Measurement:

Add a delay of 1 second between temperature readings to avoid rapid readings.

Applications

Notes

Ensure proper power supply and ground connections for accurate temperature readings.

Handle the LM35 sensor module carefully to avoid damage to the delicate sensor component.