Everything about TMP36GZ Temperature Sensor

TMP36GZ Temperature Sensor
TMP36GZ Temperature Sensor

TMP36GZ Temperature Sensor

This sensor is one of the most accurate temperature sensors on the market for your Arduino projects.

Specifications:

  • Output Type: Analog
  • Accuracy: +/- 3 C
  • Supply Voltage – Min: 2.7 V
  • Supply Voltage – Max: 5.5 V
  • Minimum Operating Temperature: – 40 C
  • Maximum Operating Temperature: + 125 C
  • Product: Temperature Sensors
  • Series: TMP36
  • Brand: Analog Devices
  • Operating Supply Current: 50 uA

Eksempel of an Arduino Setup with Code:

TMP36GZ Temperature Sensor

TMP36GZ Temperature Sensor Arduino Code:

const int temperaturePin = 0;

void setup()
{ 
  Serial.begin(9600);
}

void loop()
{

  float voltage, degreesC, degreesF;

  voltage = getVoltage(temperaturePin);
  degreesC = (voltage - 0.5) * 100.0;
  degreesF = degreesC * (9.0/5.0) + 32.0;

  Serial.print("voltage: ");
  Serial.print(voltage);
  Serial.print("  deg C: ");
  Serial.print(degreesC);
  Serial.print("  deg F: ");
  Serial.println(degreesF);
   
  delay(1000); // repeat once per second (change as you wish!)
}

float getVoltage(int pin)
{

  return (analogRead(pin) * 0.004882814);
 
}

Download:

Here you can find the Datasheet for the TMP36GZ Temperature Sensor: