Skip to content

Commit b4f0b2e

Browse files
SimonePDAsandeepmistry
authored andcommitted
Update ReadSensor.ino
1 parent 36d748a commit b4f0b2e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

examples/ReadSensor/ReadSensor.ino

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/*
22
MKR THERM Shield - Read Sensors
3-
4-
This example reads the sensor connected to the MKR THERM shield
3+
This example reads the temperatures measured by the thermocouple
4+
connected to the MKR THERM shield
55
and prints them to the Serial Monitor once a second.
6-
76
The circuit:
87
- Arduino MKR board
98
- Arduino MKR THERM Shield attached
10-
- A thermocouple temperature sensor connected to the shield
9+
- A K Type thermocouple temperature sensor connected to the shield
1110
1211
This example code is in the public domain.
1312
*/
@@ -28,11 +27,11 @@ void setup() {
2827

2928
void loop() {
3029

31-
Serial.print("Internal temperature ");
32-
Serial.print(THERM.readInternalTemperature());
30+
Serial.print("Shield reference temperature ");
31+
Serial.print(THERM.readRefTemperature());
3332
Serial.println(" °C");
3433

35-
Serial.print("External temperature ");
34+
Serial.print("Measured temperature ");
3635
Serial.print(THERM.readTemperature());
3736
Serial.println(" °C");
3837

0 commit comments

Comments
 (0)