TMP36 (TMP36GT9Z) [S071] 





* Specs
Temperature range: -40°C to 150°C / -40°F to 302°F
Output range: 0.1V (-40°C) to 2.0V (150°C) but accuracy decreases after 125°C
Power supply: 2.7V to 5.5V only, 0.05 mA current draw

* Contents
Temp in °C = [(Vout in mV) - 500] / 10
So for example, if the voltage out is 1V that means that the temperature is ((1000 mV - 500) / 10) = 50 °C

- Connect
L -  5V
M - A0
R - GND

- Key Code
int sensorValue = analogRead(TMP36_PIN);  
float mVoltage = sensorValue * 5000.0/1024.0;
float temperatureC = (mVoltage - 500) / 10.0;  




Posted by RDIoT
|