Overview
This project is about observing the temperature in the surroundings
using temperature and humidity sensors and printing them on LCD.
In this temperature measurer, we use temperature & humidity sensors for
measuring the temperature of the surroundings and LCD for printing the output.
Hardware required
1. Arduino Uno R3
2. Resistor
3. Jumper Wires
4. Temperature Sensor
5. Potentiometer
6. Lcd
7. Breadboard
Schematic Diagram
Fig 1. Circuit Diagram
Arduino Code :
#include<LiquidCrystal.h>
LiquidCrystal lcd(12,11,5,4,3,2);
float value;
int tmp = A0;
void setup(){
pinMode(tmp,INPUT);
}
void loop(){
value = analogRead(tmp)*0.004882814;
value = (value - 0.5) * 100.0;
lcd.setCursor(0,1);
lcd.print("Temp:");
lcd.print(value);
delay(1000);
lcd.clear();
}
Precautions
- Connections should be done properly.
- Arduino is case Sensitive so code accordingly.
- Give different and appropriate colors to the wires.
- Use resistors for sensors and LCDs.