

The TMP36 is a low-voltage, precision temperature sensor that provides an analog output voltage proportional to the temperature in Celsius. It is designed to operate from a single power supply, making it ideal for battery-powered applications. The TMP36 is known for its accuracy, low power consumption, and ease of use. It does not require any external calibration or trimming, simplifying its integration into various projects.








The TMP36 is a versatile sensor with the following key specifications:
| Parameter | Value |
|---|---|
| Supply Voltage (Vcc) | 2.7V to 5.5V |
| Output Voltage Range | 0.1V to 2.0V |
| Temperature Range | -40°C to +125°C |
| Accuracy | ±2°C (typical) |
| Output Scale Factor | 10 mV/°C |
| Quiescent Current | 50 µA (typical) |
| Package Type | TO-92, SOIC-8 |
The TMP36 has three pins, as shown in the table below:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | Vcc | Power supply (2.7V to 5.5V) |
| 2 | Vout | Analog output voltage |
| 3 | GND | Ground |
Vcc pin to a power supply (2.7V to 5.5V) and the GND pin to ground.Vout pin to an analog input pin of a microcontroller or ADC (Analog-to-Digital Converter).Vcc and GND to reduce noise.Below is an example code to read temperature data from the TMP36 using an Arduino UNO:
// TMP36 Temperature Sensor Example with Arduino UNO
// Connect TMP36: Vcc to 5V, GND to GND, Vout to A0
const int sensorPin = A0; // TMP36 output connected to analog pin A0
float voltage; // Variable to store sensor output voltage
float temperatureC; // Variable to store temperature in Celsius
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read analog value from TMP36
voltage = sensorValue * (5.0 / 1023.0); // Convert ADC value to voltage
temperatureC = (voltage - 0.5) * 100.0; // Convert voltage to temperature
// Print temperature to Serial Monitor
Serial.print("Temperature (C): ");
Serial.println(temperatureC);
delay(1000); // Wait 1 second before next reading
}
(voltage - 0.5) * 100.0 is derived from the TMP36's output characteristics.Incorrect Temperature Readings
Vcc and GND.No Output or Constant Value
Fluctuating Readings
Output Voltage Exceeds Expected Range
Q1: Can the TMP36 be used with a 3.3V power supply?
A1: Yes, the TMP36 operates with supply voltages as low as 2.7V, making it compatible with 3.3V systems.
Q2: How accurate is the TMP36?
A2: The TMP36 has a typical accuracy of ±2°C. For higher accuracy, consider calibrating the sensor in your specific application.
Q3: Can the TMP36 measure negative temperatures?
A3: Yes, the TMP36 can measure temperatures below 0°C. The output voltage will be less than 500 mV for negative temperatures.
Q4: Is the TMP36 suitable for outdoor use?
A4: The TMP36 is not weatherproof. If used outdoors, it must be enclosed in a protective, thermally conductive housing.
Q5: What is the maximum cable length for the TMP36?
A5: The maximum cable length depends on the environment and noise levels. For long distances, use shielded cables and consider buffering the signal.