Temperature Measurement using LM35 and Arduino Program with Component Connection

Objective:

         To measure the amount of temperature present in the atmosphere

Components Required

  • Arduino Uno
  • Temperature Sensor (LM35)

Connection Diagram

Program

int sensorPin = A0;

int sensorValue = 0;

void setup()

{

pinMode(sensorPin, INPUT);

Serial.begin(9600);

}

void loop()

{

sensorValue = analogRead(sensorPin);

float temperatureC=sensorPin/2.048;

float temperatureF= ((temperatureC ) * 9.0 / 5.0) + 32.0;

Serial.println(Temperature (F));

Serial.print(temperatureF);

Serial.println(Temperature(C));

Serial.print(temperatureC);

}

Working

         The Temperature sensor is nothing but a thermistor whose resistance changes in accordance with the temperature. The change in resistance varies the amount of current flow through it and there by the voltage also.

Output

Room Temperature : 28 C

Interfacing IR Receiver with Arduino Uno Program with Component Connection
Interfacing DC Motor with Arduino Uno Program with Component Connection

Leave a Reply

Your email address will not be published. Required fields are marked *

Navigation

My Cart

Close
Viewed

Recently Viewed

Close

Great to see you here !

Your personal data will be used to support your experience throughout this website, to manage access to your account, and for other purposes described in our privacy policy.

Already got an account?

Quickview

Close

Categories