User manual

www.sainsmart.com
Copyright © 2013 SainSmart All Rights Reserved
{
Serial.begin(9600);
}
void loop()
{
int val;
int dat;
val = analogRead(potPin);
dat = (125*val)>>8 ; // Temperature calculation formula
Serial.print("Tep : ") ; //print Tep means temperature
Serial.print(dat) ; // print the value of dat
Serial.println("C"); //print C means degree
delay(500);//delay 0.5s
}
Program function
Download the program to the experimental board, open the monitor, you can see the current
ambient temperature. (In fact, the temperature value a little deviation, according to the ambient
temperature modify the program so that it is completely consistent with their own environment.)