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

Sem 8 Practical Exam

 DC LAB ASSIGNMENTS  https://github.com/siddharthlanke/Sem-VIII-Academic-Labs/tree/main LAB-1 LAB-2 LAB-3 LAB-4 https://colab.research.google.com/drive/1wf96qi9RH3oGN039QbcmU6s3PEY6txn7?usp=sharing LAB-5 https://colab.research.google.com/drive/1i_a5owxrYdRB1ZQPa6vWGsKdC0ALiSHU?usp=sharing LAB-6 https://colab.research.google.com/drive/1CdPxCss_ppyZf4rCdiEl12CQSarvTBh9?usp=sharing CI LAB ASSIGNMENTS  LAB-1 https://colab.research.google.com/drive/1s07YgacC2nTC-vQUxtT3dKifgKZBwCaI?usp=sharing LAB-2 https://colab.research.google.com/drive/1wj6x-eunLDBx3J8Q-nheShHTMftyvgDu?usp=sharing LAB-3 https://colab.research.google.com/drive/1gw4ZekLF5WYVg3r4Rn0gnwKg177rkMmo?usp=sharing LAB-4 https://colab.research.google.com/drive/1WO0bPhM_y3xSMrNLJBjvVQ7gNpGJHCys?usp=sharing DL LAB ASSIGNMENTS  LAB-1 LAB-2 https://colab.research.google.com/drive/1324qVAvwPeqWoOQgEZ7SHRXwCVQVVZs1?usp=sharing LAB-3 https://colab.research.google.com/drive/1RCX1xvUXex6ksUtQtnj5zpoOGM_fipbr?usp=sharing LAB-4 https://colab.

Sem 7 Practical Exam

 ML LAB ASSIGNMENTS  LAB-1 https://colab.research.google.com/drive/1iQXKgk2nsysWXnO7xbajrSjGcYlReIhE LAB-2 https://colab.research.google.com/drive/1Ilmd52oXNojLpIUKNpVGkDiweL3smrvz LAB-3 https://colab.research.google.com/drive/1U6tD9lT7ktMxfDFVQRXTGGMh7sSA_-Sf LAB-4 https://colab.research.google.com/drive/1S3LFQdfJ0sodYIrNBIvCbuineHN5xRBs LAB-5 https://colab.research.google.com/drive/1u61o7jXxmqw4gnvF-YBKHElMDjHDwBSN LAB-6 https://colab.research.google.com/drive/1-LdxSoE2oKJr9Q84qWPH4Xo5uM7aDvLB QAI LAB ASSIGNMENTS  LAB-1 https://colab.research.google.com/drive/1w8j9LEK_ihcgc6QYhR-s_WQ0FZLbcF3t LAB-2 https://colab.research.google.com/drive/1l10kBvC7qNS2L17f3VBmpyDpNFlG2Mj7 LAB-3 https://colab.research.google.com/drive/1V2u0BZP63lZT9rMYRTcs88XnMNK0Uz6z LAB-4 https://colab.research.google.com/drive/1i7NJukPd-TQ5VAJP02TEOKCArEylmoGp LAB-6 https://colab.research.google.com/drive/1EvbH1DuDC06dkHCJi4XUd6iG87w3DhAl DMV LAB ASSIGNMENTS  LAB-1 https://colab.research.google.com/drive/1YHv4aatqmi