Skip to content

Instantly share code, notes, and snippets.

@manfe
Created September 7, 2014 18:38
Show Gist options
  • Save manfe/b64aae9d6be35fbe2e8b to your computer and use it in GitHub Desktop.
Save manfe/b64aae9d6be35fbe2e8b to your computer and use it in GitHub Desktop.
LM35 - Sensor de Temperatura
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