Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned long delay1 = 0;
- unsigned long temperatura = 0;
- //-----------------------------------
- void setup()
- {
- Serial.begin(9600);
- delay1 = millis();
- }
- //-----------------------------------
- void loop()
- {
- if ((millis() - delay1) >= 10000)
- {
- Serial.print("Temp: ");
- Serial.println(temperatura);
- delay1 = millis();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement