15 lines
183 B
Text
15 lines
183 B
Text
float temp;
|
|
int tempPin = 0;
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin(9600);
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
temp = analogRead(tempPin);
|
|
temp = temp * 0.48828125;
|
|
Serial.println(temp);
|
|
delay(1000);
|
|
}
|