File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
2
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
5
5
and prints them to the Serial Monitor once a second.
6
-
7
6
The circuit:
8
7
- Arduino MKR board
9
8
- 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
11
10
12
11
This example code is in the public domain.
13
12
*/
@@ -28,11 +27,11 @@ void setup() {
28
27
29
28
void loop () {
30
29
31
- Serial.print (" Internal temperature " );
32
- Serial.print (THERM.readInternalTemperature ());
30
+ Serial.print (" Shield reference temperature " );
31
+ Serial.print (THERM.readRefTemperature ());
33
32
Serial.println (" °C" );
34
33
35
- Serial.print (" External temperature " );
34
+ Serial.print (" Measured temperature " );
36
35
Serial.print (THERM.readTemperature ());
37
36
Serial.println (" °C" );
38
37
You can’t perform that action at this time.
0 commit comments