Skip to content

Commit

Permalink
Updated example to work with version 2.0.0 of our library.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martinsos authored Aug 21, 2021
1 parent c931650 commit 3b217d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/temperature/temperature.ino
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void loop () {
// Every 1 second, do a measurement using the sensor and print the distance in centimeters.
sens_temperature.requestTemperatures();
float temperature = sens_temperature.getTempCByIndex(0);
double distance = distanceSensor.measureDistanceCm(temperature);
float distance = distanceSensor.measureDistanceCm(temperature);

Serial.print(F("Temperature: "));
Serial.print(temperature);
Expand Down

0 comments on commit 3b217d3

Please sign in to comment.