mpmcws

LM35DZ II

Aug 11th, 2018
89
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // LM 35 DZ
  2. //Marco C. agosto 2018 code open source
  3. void setup()
  4. {
  5.   Serial.begin(9600);
  6. }
  7. void loop ()
  8. {
  9.   int v = analogRead(A0) * (5000 / 1024);
  10.   int t = v / 10;
  11.           Serial.print(" T = ");
  12.   Serial.println(t);
  13.   delay(1000);
  14. }
RAW Paste Data