***ARDUINO CODE FOR TEMPERATURE SENSOR****
For explanation visit Our Youtube Channel "TECHFOSHA"
*********************************************************************************
**********************************CIRCUIT***************************************
***********************************CODE*****************************************
//TECHFOSHA
//Arduino Tutorials, Projects, different projects on IC 555, IC 741, C Coder
//Visit our Youtube Channel "TECHFOSHA"
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
float tempval;
int tempPin = 1;
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup()
{
// initialize the LCD,
lcd.begin();
// Turn on the blacklight and print a message
lcd.backlight();
}
void loop()
{
//Start of loop
tempval = analogRead(tempPin);
tempval = (tempval*0.48875);
lcd.clear();
lcd.print("#TEMPERATURE#");
lcd.setCursor (0,1); // go to start of 2nd line
lcd.print(tempval); //Print temperature value on LCD
lcd.print("*C");
delay(1000);//delay of 1 sec
//end of loop
}
For explanation visit Our Youtube Channel "TECHFOSHA"
*********************************************************************************
**********************************CIRCUIT***************************************
***********************************CODE*****************************************
//TECHFOSHA
//Arduino Tutorials, Projects, different projects on IC 555, IC 741, C Coder
//Visit our Youtube Channel "TECHFOSHA"
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
float tempval;
int tempPin = 1;
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup()
{
// initialize the LCD,
lcd.begin();
// Turn on the blacklight and print a message
lcd.backlight();
}
void loop()
{
//Start of loop
tempval = analogRead(tempPin);
tempval = (tempval*0.48875);
lcd.clear();
lcd.print("#TEMPERATURE#");
lcd.setCursor (0,1); // go to start of 2nd line
lcd.print(tempval); //Print temperature value on LCD
lcd.print("*C");
delay(1000);//delay of 1 sec
//end of loop
}