loading

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:

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.

<p>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. </p><p>accurate reading.</p>
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.
<p>Does the read analog value actually depend on the voltage you use for driving the chip?<br>Do you know a similar sensor that have a higher maximum range like let's say 400&deg;C? I'm currently building a grilling/smoking station and need to monitor the temperature.</p>
<p>Check out this thread: https://arduino.stackexchange.com/questions/615/how-can-i-sense-very-high-temperatures-with-arduino</p>
<p>semiconductor sensors are no good above ~150C. for temperatures above this, you will need to use other sensors, like thermocouples, or resistance thermometers</p><p><br></p>
<p>nice! that's a simple tutorial wich explain! </p>
Thanks i'm glad you liked it.<br>

About This Instructable

1,527views

49favorites

License:

More by Spaceman Spiff:Lazy Man's Automatic Plant Watering Robot BMP280 Barometric Pressure Sensor TMP36 Temperature Sensor 
Add instructable to: