TEMPERATURE SENSOR

TINKS015

  1. LM35 is a precision IC temperature sensor with its output proportional to the temperature (in degree C).
  2. The sensor circuitry is sealed and therefore it is not subjected to oxidation and other processes.
  3. The sensor provides an Analog output.
Features:-
  1. Calibrated directly in degree Celsius (centigrade)
  2. 5 degree Celsius accuracy guarantee able (at +25degree Celsius)
  3. Rated for full -55 to +150 degree Celsius range
  4. Suitable for remote applications
  5. Low cost
  6. Operates from 4 to 30 volts
  7. Less than 60 Micro ampere current drain
  8. Low self-heating, 0.08 degree Celsius in still air.
  9. Output:- Analog
Applications:-
  1. Power Supplies.
  2. Battery Management.
  3. HVAC
  4. Appliances

    

int tempPin=A2;

int temp;

void setup() {

// put your setup code here, to run once:

Serial.begin(9600);

}

 

void loop() {

// put your main code here, to run repeatedly:

temp = analogRead(tempPin);

temp=temp*0.48828125;

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

Serial.print(temperatureF);

Serial.println(" degrees F");

Serial.print("TEMPERATURE =");

Serial.print(temp);

Serial.println("*C");

Serial.println();

 

delay(1000);//waiting a second

}