Abishek Bhalaaji
Published © GPL3+

Arduino Based Digital Temperature Sensor

This is a temperature tensor that is made using an Arduino UNO and an LM35 sensor which measures the temperature of a given area.

BeginnerShowcase (no instructions)1 hour58,049
Arduino Based Digital Temperature Sensor

Things used in this project

Story

Read more

Schematics

Schematic Diagram

It is the schematic diagram that displays the connections to be made in the circuit.

Code

ArduinobasedDTS_7

Arduino
It is the code that is to be uploaded into the Arduino UNO after which it is placed in the circuit.
#include<LiquidCrystal.h>
LiquidCrystal lcd(7,6,5,4,3,2);

const int Sensor = A0; 
byte degree_symbol[8] = 
              {
                0b00111,
                0b00101,
                0b00111,
                0b00000,
                0b00000,
                0b00000,
                0b00000,
                0b00000
              };
void setup()
{
  pinMode(Sensor, INPUT);
  lcd.begin(16,2);
  lcd.createChar(1, degree_symbol);
  lcd.setCursor(0,0);
  lcd.print("    Digital    ");
  lcd.setCursor(0,1);
  lcd.print("  Thermometer   ");
  delay(4000);
  lcd.clear();
}
void loop()
{
  
     float temp_reading=analogRead(Sensor);
     float temperature=temp_reading*(5.0/1023.0)*100;
     delay(10); 
  
    lcd.clear();
    lcd.setCursor(0,0);
    lcd.print("Temperature in C");
    lcd.setCursor(4,1);
    lcd.print(temperature);
    lcd.write(1);
    lcd.print("C");
    delay(1000);
}

Credits

Abishek Bhalaaji

Abishek Bhalaaji

1 project • 19 followers
Im a Electrical Engineer from SRM University. I just love to make some cool stuff including the Open source projects and many more!!

Comments