Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float temp;
- int tempPin = 0;
- void setup()
- {
- Serial.begin(9600);
- }
- void loop()
- {
- temp = analogRead(tempPin);
- temp = temp * 0.48828125;
- Serial.print(temp);
- Serial.print(" °C");
- Serial.println();
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement