Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
milesburton authored Jan 21, 2025
1 parent dafac43 commit 176087a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,15 @@ A robust and feature-complete Arduino library for Maxim Temperature Integrated C
}

void loop(void) {
sensors.requestTemperatures();
float tempC = sensors.getTempCByIndex(0);
Serial.print("Temperature: ");
Serial.print(tempC);
Serial.println("°C");
delay(1000);
sensors.requestTemperatures();

delay(750);

float tempC = sensors.getTempCByIndex(0);
Serial.print("Temperature: ");
Serial.print(tempC);
Serial.println("°C");
delay(1000);
}
```
Expand Down

0 comments on commit 176087a

Please sign in to comment.