SHARE
TWEET

Arduino - LM35 Sensor Temperatura

tessomc Oct 3rd, 2012 89 Never
  1. int analogPin = 2;
  2. int valAnalog;
  3.  
  4. void setup() {
  5.   Serial.begin(9600);
  6. }
  7.  
  8. void loop(){
  9. valAnalog = (5 * analogRead(analogPin) * 100) / 1024; //Celsius
  10. Serial.println(valAnalog);
  11. delay(1000);
  12. }
RAW Paste Data
Top