Skip to main content

IOT Experiment -5

   IOT Experiment -5

READ TEMPERATURE AND DISPLAY ON SERIAL MONITOR USING ARDUINO UNO IN DEGREE CELCUIS AND FAHREINHEIT

SORCE CODE:


const int sensor=A5;
float tempc;
float tempf;
float vout;

void setup(){
  pinMode(sensor,INPUT);
  Serial.begin(9600);
}
void loop(){
  vout = analogRead(sensor);
  vout=(vout *500)/1023;
tempc=vout;
tempf=(vout*1.8)+32;
Serial.print("in DegreeC=");
Serial.print("\t");
Serial.print(tempc);
Serial.print("  ");
Serial.print("in Fahrenheit=");  
Serial.print("\t");
Serial.print(tempf);
Serial.println();
delay(500);
}

Comments

Popular posts from this blog

FIRST YEAR SPPU NOTES

FIRST YEAR SPPU NOTES  ENGINEERING MECHANICS : Unit 1 -  OPEN PDF Unit 2 -  OPEN PDF Unit 3 -  OPEN PDF Unit 4 -  OPEN PDF ENGINEERING GRAPHICS : Unit 1 -  OPEN PDF Unit 2 -  OPEN PDF Unit 3 -  OPEN PDF Unit 4 -  OPEN PDF ENGINEERING MATHEMATICS - 2 : NIRALI PRAKASHAN UNIT 1 TO 4 -  OPEN  PDF ENGINEERING PHYSICS :                                  COMING SOON BASIC ELECTRONICS ENGINEERING :                                  COMING SOON

GEOGRAPHY PRACTICAL VIVA VOICE QUESTIONS

World Geography General Knowledge Questions Q.1 The highest place on the Earth             Ans .  Everest Q.2 The circles which vertically cross the equator             Ans .  Longitudes  Q.3 What is the total weight of the air in the atmosphere?             Ans .  6×10 Tones  Q.4 International space line passes through?             Ans .  180 Greenwich  Q.5 What are the different kinds of rocks found on the Earth? .             Ans .  Igneous rocks, Sedimentary rocks, Metamorphic rocks  Q.6 The metal which form the core of Earth:             Ans .  Iron and Nickel  Q.7 The innermost part of the Earth: . ...

CHEMISTRY IMPORTANT QUESTION 2020 HSC

CHEMISTRY IMPORTANT QUESTION 2020 HSC PLZ DO IT. PART - 1 PART - 2