Introduction: TMP36 Temperature Sensor
There are many options to measure temperature for your projects. One of the easiest method is the use of the TMP36 Chip. It is highly accurate with a temperature range between -40°F to 302°F (-40°C to 150°C), easy to come by, and is very cheap.
Step 1: Parts
Here's what you'll need to get started:
- TMP36 - Temperature Sensor
- Arduino Uno
or any of it's variants
- Male to Female Jumper Wire
Step 2: Connections
The TMP36 has three pins. Looking at the flat side of the sensor the leftmost pin is Voltage in (between 2.7V to 5.5V DC). The center pin is Voltage out. This puts out a variable voltage between 0.1V (-40°C) to 2.0V (150°C), and will connect to any of the Analog input pins on the Arduino. The right most pin is Ground.
In this example I have connected the follwoing TMP36 pins to the Arduino respectively, Vin to 5V, Vout to A0, and Gnd to Gnd.
Step 3: The Sketch
Use the attached sketch (TMP36.ino) and upload it to your arduino. After loading the sketch use the serial monitor (Tools > Serial Monitor) to see how the TMP36 responds to its environment.

Participated in the
Untouchable Challenge
7 Comments
6 years ago
Sensor tmp 36. Do you know if you can attach the tmp 36 a distance from the arduino. i.e. locate the sensor several feet from the circuit board.
accurate reading.
Reply 6 years ago
I haven't tried it myself, but it should work. There is some resistance that comes with running a long distance, but I don't think a few feet will matter too much. You could always try making it wireless by connecting it to the internet or via bluetooth.
6 years ago
Does the read analog value actually depend on the voltage you use for driving the chip?
Do you know a similar sensor that have a higher maximum range like let's say 400°C? I'm currently building a grilling/smoking station and need to monitor the temperature.
Reply 6 years ago
Check out this thread: https://arduino.stackexchange.com/questions/615/how-can-i-sense-very-high-temperatures-with-arduino
Reply 6 years ago
semiconductor sensors are no good above ~150C. for temperatures above this, you will need to use other sensors, like thermocouples, or resistance thermometers
6 years ago
nice! that's a simple tutorial wich explain!
Reply 6 years ago
Thanks i'm glad you liked it.