Project Report Temp Sensor
Project Report Temp Sensor
Objective:
To design a simple and cost-effective temperature sensing system that can detect temperature
levels and indicate when a specific threshold is exceeded using an LED.
Components Required:
Arduino UNO
LM35 Temperature Sensor
LED
Resistor (220Ω)
Breadboard
Jumper Wires
USB Cable
Description of Components:
Arduino UNO:
A microcontroller board based on the ATmega328P, which is used to read sensor data and
control outputs like LEDs.
Fig 1.1
LM35 Sensor:
An analog temperature sensor that provides 10 mV per °C linear output, allowing for simple
interfacing with analog pins.
Fig 1.2
LED:
Used to indicate high temperature; it turns ON if the temperature exceeds the set threshold.
Fig 1.3
Resistor:
Limits current to the LED to prevent damage. Typically 220Ω to 330Ω is used.
Fig 1.4
Fig 1.5
Working Principle:
The LED is connected to digital pin 8 through a 220Ω resistor, with its cathode connected to
GND.
2. The output voltage of LM35 is read by the Arduino on analog pin A0.
3. The Arduino converts this analog voltage to a temperature value.
4. If the temperature exceeds a set threshold (e.g., 30°C), the LED connected to digital pin 8
is turned on.
5. Otherwise, the LED remains off.
Circuit Diagram:
Fig 1.6
Arduino Code:
void setup() {
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
void loop() {
Serial.print("Temperature: ");
Serial.print(temperatureC);
Serial.println(" °C");
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
delay(1000);
}
Applications:
Conclusion:
This project successfully demonstrates how to build a basic temperature monitoring system using
The temperature monitoring system using Arduino UNO and LM35 sensor effectively
demonstrates the integration of basic electronic components and microcontroller programming to
achieve a real-time temperature detection application. Through this project, we learned how the
LM35 sensor works and how its analog output can be read and processed by an Arduino to
calculate temperature in Celsius with good accuracy.
By setting a temperature threshold and controlling an LED indicator, the system provides a
simple visual alert when the environment becomes too hot, making it applicable in situations
where overheating needs to be prevented or monitored, such as in electronic devices, server
rooms, or small-scale greenhouses.
Moreover, the modularity and flexibility of the Arduino platform allow for future expansion of
the system. For example, it can be enhanced to:
In summary, this project not only accomplishes its primary goal—monitoring temperature and
providing visual feedback—but also lays a solid groundwork for more complex embedded
systems and automation projects.