Created
March 28, 2016 09:31
-
-
Save ludovicfrin/35a8ca1afea875bfeb43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float temperature; | |
int reading; | |
int pin = 5; | |
void setup() | |
{ | |
analogReference(INTERNAL); | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
reading = analogRead(pin); | |
temperature = reading / 9.31; | |
Serial.println(temperature); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment