User manual

www.sainsmart.com
Copyright © 2013 SainSmart All Rights Reserved
Out can be seen from experimental cartridge of the temperature sensor, temperature sensor side
is flat, and the other side is semicircular. Flat face of our own, the leftmost VCC pin (connected to
+5 v), the middle of the GND pin VOUT (voltage value output pin, then the analog pins on the
board), and the rightmost pin (connected board GND). Three pins, respectively, then you can use.
Temperature alarm experiment
Experiment component
LM35 temperature sensor module*1
Breadboard & jumper wire few
Connection
First ready experimental board; Follow the LM35 temperature sensor connection connected to
VOUT is connected to an analog 0. Such temperature alarm experimental circuit connected.
Experimental principle
LM35 temperature sensor works shows that the temperature is increased by 1 ° C vout the
mouth output voltage increases 10MV.
According to this principle procedures in real time reading out the analog voltage value of 0, since
the analog port reads out a voltage value of 0 to 1023, i.e. 0V corresponding 0,5 V corresponds to
1023.
Application, we only need to LM35 module, analog interface, the read analog value is converted
to the actual temperature.
Example code
int potPin = 0 ;//define pin0 connect with LM35
void setup()