Hello guys, in this tutorial we will see how to measure high degree temperature with Arduino by K type thermocouple. So let’s get started.

For this you will need,

Do connection as shown in diagram. Now I am going to measure high temperature of this furnace. I inserted K type thermocouple in the furnace. This sensor is capable to measure 0 to 1024 C temperature. And I have one more device to measure high temperature. We will compare both.

Download library for MAX6675 and I2C  from github OR you can download it from here because github library may change by the time or it may not work.

If you don’t know how to use I2C with LCD. You can see my previous tutorial on how to connect I2C with LCD.

##### Sketch:
```#include "max6675.h"
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3F, 16, 2);
int ktcSO = 8;
int ktcCS = 9;
int ktcCLK = 10;
double t; //temperature in celsius
double tf; //temperature in fahrenheit
MAX6675 ktc(ktcCLK, ktcCS, ktcSO);

void setup() {
Serial.begin(9600);
lcd.begin();
delay(500);
}

void loop() {
lcd.setCursor(0,0);
lcd.print("K Type Thermocouple");
t = ktc.readCelsius(); //temperature in celsius
// uncomment below line to get temperature in fahrenheit
lcd.setCursor(0,1);
lcd.print("Temp = ");
lcd.setCursor(7,1);
lcd.print(t);
Serial.println(t);
// uncomment below line to get temperature in fahrenheit
//Serial.println(tf);
delay(1000);
lcd.clear();
}```

This function read temperature in Celsius. And we are printing temperature value on LCD.

`ktc.readCelsius();`

Upload the code. Now we can see temperature value on both screen. I think k type thermocouple is fairly accurate but showing 1 to 2 degree error in high temperature. Till then keep learning keep making.

Categories: Arduino