Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // LM 35 DZ
- //Marco C. luglio 2018 code open source
- void setup()
- {
- Serial.begin(9600);
- analogReference(INTERNAL);
- }
- void loop ()
- {
- int aRead = 0;
- float ref = 1.1;
- aRead = analogRead(A0);
- float tempC = aRead * ref / 1023 * 100;
- float volt = aRead * ref / 1023;
- Serial.print(" T = ");
- Serial.println(tempC);
- delay(1000);
- }
RAW Paste Data