Created
September 7, 2014 18:38
-
-
Save manfe/b64aae9d6be35fbe2e8b to your computer and use it in GitHub Desktop.
LM35 - Sensor de Temperatura
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
int pinTemp = A1; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
int temp = analogRead(pinTemp); | |
temp = temp * 0.48828125; | |
Serial.print("Temperature: "); | |
Serial.print(temp); | |
Serial.println("C"); | |
delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment