{"id":109028,"date":"2022-03-15T16:21:46","date_gmt":"2022-03-15T16:21:46","guid":{"rendered":"https:\/\/randomnerdtutorials.com\/?p=109028"},"modified":"2022-03-15T16:21:49","modified_gmt":"2022-03-15T16:21:49","slug":"esp32-k-type-thermocouple-max6675","status":"publish","type":"post","link":"https:\/\/randomnerdtutorials.com\/esp32-k-type-thermocouple-max6675\/","title":{"rendered":"ESP32: K-Type Thermocouple with MAX6675 Amplifier"},"content":{"rendered":"\n<p>In this guide, you&#8217;ll learn how to read temperature using a <strong>K-Type Thermocouple with the MAX6675 amplifier <\/strong>with the ESP32 board. A K-type thermocouple is a type of temperature sensor with a wide measurement range like \u2212200 to 1260\u00baC (\u2212326 to 2300\u00baF).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" fetchpriority=\"high\" decoding=\"async\" width=\"1200\" height=\"675\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/ESP32-Thermocouple-Type-K-MAX6675.jpg?resize=1200%2C675&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 with K-Type Thermocouple with MAX6675 Amplifier\" class=\"wp-image-109142\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/ESP32-Thermocouple-Type-K-MAX6675.jpg?w=1280&amp;quality=100&amp;strip=all&amp;ssl=1 1280w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/ESP32-Thermocouple-Type-K-MAX6675.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/ESP32-Thermocouple-Type-K-MAX6675.jpg?resize=1024%2C576&amp;quality=100&amp;strip=all&amp;ssl=1 1024w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/ESP32-Thermocouple-Type-K-MAX6675.jpg?resize=768%2C432&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/figure><\/div>\n\n\n\n<p>This tutorial covers how to interface the k-type thermocouple with your ESP32 board, install the required library and use a simple sketch to display the sensor readings in the Serial Monitor.<\/p>\n\n\n\n<p><strong>Table of Contents<\/strong><\/p>\n\n\n\n<p>In this tutorial, we&#8217;ll cover the following topics:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#introduction\">Introducing K-Type Thermocouple<\/a><\/li><li><a href=\"#max6675\">MAX 6675 Amplifier<\/a><\/li><li><a href=\"#interface\">Interfacing K-Type Thermocouple with MAX 6675 Amplifier<\/a><\/li><li><a href=\"#library\">Installing MAX 6675 Arduino Library<\/a><\/li><li><a href=\"#code\">Code &#8211; Get Temperature from K-Type Thermocouple with MAX 6675 Amplifier<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"introduction\">What is a K-Type Thermocouple?<\/h2>\n\n\n\n<p>A thermocouple is a device that consists of two different electrical conductors that form an electrical junction\u2014thermal junction. The change in temperature at the junction creates a slightly but measurable voltage at the reference junction that can be used to calculate the temperature.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"720\" height=\"351\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/thermocouple-how-it-works.png?resize=720%2C351&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Thermocouple How it Works\" class=\"wp-image-109143\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/thermocouple-how-it-works.png?w=720&amp;quality=100&amp;strip=all&amp;ssl=1 720w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/thermocouple-how-it-works.png?resize=300%2C146&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/figure><\/div>\n\n\n\n<p>A thermocouple can be made of different metals. The metals used will affect the voltage range, cost, and sensitivity. There are standardized metal combinations that result in different thermocouple types: B, E, J, N, K, R, T, and S.<\/p>\n\n\n\n<p>Our tutorial is about the k-type thermocouple. A  k-type thermocouple is made out of chrome and alumel conductors and has a general temperature range of \u2212200 to 1260\u00baC (\u2212328 to 2300\u00baF).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/type-k-thermocouple-f.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"type-k thermocouple\" class=\"wp-image-109246\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/type-k-thermocouple-f.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/type-k-thermocouple-f.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"max6675\">MAX6675 Amplifier<\/h2>\n\n\n\n<p>To get the temperature from the thermocouple we need a thermocouple amplifier. The temperature output from the thermocouple amplifier depends on the voltage read on the reference junction. The voltage at the reference junction depends on the temperature difference between the reference junction and the thermal junction. So, we need to know the temperature at the reference junction.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"464\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/MAX6675-amplifier-f.jpg?resize=750%2C464&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"MAX6675 thermocouple\" class=\"wp-image-109247\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/MAX6675-amplifier-f.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/MAX6675-amplifier-f.jpg?resize=300%2C186&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<p>The MAX6675 thermocouple comes with a temperature sensor to measure temperature at the reference junction (cold-compensation reference) and amplifies the tiny voltage at the reference junction so that we can read it using our microcontrollers. The MAX6675 amplifier communicates with a microcontroller using SPI communication protocol and the data is output in a 12-bit resolution.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"749\" height=\"553\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/K-type-thermocouple-MAX6675-amplifier.png?resize=749%2C553&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"K-Type thermocouple with MAX6675 Amplifier\" class=\"wp-image-109050\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/K-type-thermocouple-MAX6675-amplifier.png?w=749&amp;quality=100&amp;strip=all&amp;ssl=1 749w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/K-type-thermocouple-MAX6675-amplifier.png?resize=300%2C221&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 749px) 100vw, 749px\" \/><\/figure><\/div>\n\n\n\n<p>Usually, you can get a pack with a k-type thermocouple and the MAX6675 amplifier. Here&#8217;s a list of the MAX6675 most relevant features. For a more detailed description, please consult the <a href=\"https:\/\/datasheets.maximintegrated.com\/en\/ds\/MAX6675.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">MAX6675 datasheet<\/a>. <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Direct digital conversion of type -K thermocouple output<\/li><li>Cold-junction compensaiton<\/li><li>Simple SPI-compatible serial interface<\/li><li>Operating voltage range: 3.0 to 5.5V<\/li><li>Operating temperature range: \u221220 to 85\u00baC<\/li><li>Resolves temperatures to 0.25\u00baC, allows readings as high as 1024\u00baC (1875\u00baF). <\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"interface\"><span style=\"font-size: inherit;\">Interfacing K-Type Thermocouple with MAX6675 Amplifier<\/span><\/h3>\n\n\n\n<p>As mentioned previously, the MAX 6675 communicates with a microcontroller using SPI communication protocol.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>MAX6675<\/strong><\/td><td><strong>Microcontroller<\/strong><\/td><\/tr><tr><td><strong>SO<\/strong><\/td><td>MISO<\/td><\/tr><tr><td><strong>CS<\/strong><\/td><td>CS<\/td><\/tr><tr><td><strong>SCK<\/strong><\/td><td>CLK<\/td><\/tr><tr><td><strong>VCC<\/strong><\/td><td>VCC (3.3V or 5V)<\/td><\/tr><tr><td><strong>GND<\/strong><\/td><td>GND<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span style=\"font-size: inherit;\">Get Temperature from K-Type Thermocouple with MAX6675 Amplifier<\/span><\/h2>\n\n\n\n<p>In this section, you&#8217;ll learn how to get temperature from your k-type thermocouple. We&#8217;ll show you a simple example that reads the temperature and displays it on the Arduino IDE Serial Monitor.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"422\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/type-k-thermocouple-max6675-esp32-f.JPG.jpg?resize=750%2C422&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 with type-k thermocouple and MAX6675 amplifier\" class=\"wp-image-109248\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/type-k-thermocouple-max6675-esp32-f.JPG.jpg?w=750&amp;quality=100&amp;strip=all&amp;ssl=1 750w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/type-k-thermocouple-max6675-esp32-f.JPG.jpg?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 750px) 100vw, 750px\" \/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Parts Required<\/h3>\n\n\n\n<p>To complete this tutorial, you need the following parts:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/makeradvisor.com\/tools\/type-k-thermocouple-max6675-amplifier\/\" target=\"_blank\" rel=\"noreferrer noopener\">K-type thermocouple with MAX6675 amplifier<\/a><\/li><li><a href=\"https:\/\/makeradvisor.com\/tools\/esp32-dev-board-wi-fi-bluetooth\/\" target=\"_blank\" rel=\"noreferrer noopener\">ESP32 <\/a>(read <a href=\"https:\/\/makeradvisor.com\/esp32-development-boards-review-comparison\/\" target=\"_blank\" rel=\"noreferrer noopener\">Best ESP32 development boards<\/a>)<\/li><li><a href=\"https:\/\/makeradvisor.com\/tools\/jumper-wires-kit-120-pieces\/\" target=\"_blank\" rel=\"noreferrer noopener\">Jumper wires<\/a> (female-to-female)<\/li><\/ul>\n\n\n<p>You can use the preceding links or go directly to <a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\">MakerAdvisor.com\/tools<\/a> to find all the parts for your projects at the best price!<\/p><p style=\"text-align:center;\"><a href=\"https:\/\/makeradvisor.com\/tools\/?utm_source=rnt&utm_medium=post&utm_campaign=post\" target=\"_blank\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2017\/10\/header-200.png?w=1200&#038;quality=100&#038;strip=all&#038;ssl=1\"><\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Schematic &#8211; ESP32 with K-type thermocouple and MAX6675 Amplifier<\/h3>\n\n\n\n<p>Wire the MAX6675 Amplifier to the ESP32 as shown in the following schematic diagram.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"735\" height=\"486\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/ESP32-MAX6675-Thermocouple-wiring-Diagram.png?resize=735%2C486&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"ESP32 with Type-k thermocouple and Max 6675 Amplifier Wiring Diagram\" class=\"wp-image-109147\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/ESP32-MAX6675-Thermocouple-wiring-Diagram.png?w=735&amp;quality=100&amp;strip=all&amp;ssl=1 735w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/ESP32-MAX6675-Thermocouple-wiring-Diagram.png?resize=300%2C198&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/figure>\n\n\n\n<p>You can also follow the next table.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>MAX6675<\/strong><\/td><td><strong>ESP32<\/strong><\/td><\/tr><tr><td>GND<\/td><td><span class=\"rnthl rntcblack\">GND<\/span><\/td><\/tr><tr><td>VCC<\/td><td><span class=\"rnthl rntcred\">3.3V<\/span><\/td><\/tr><tr><td>SCK<\/td><td><span class=\"rnthl rntcyellow\">GPIO 5<\/span><\/td><\/tr><tr><td>CS<\/td><td><span class=\"rnthl rntclblue\">GPIO 23<\/span><\/td><\/tr><tr><td>SO<\/td><td><span class=\"rnthl rntclgreen\">GPIO 19<\/span><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"library\">Installing MAX6675 Arduino Library<\/h3>\n\n\n\n<p>There are different libraries to get temperature from a K-type thermocouple using the MAX6675 amplifier. We&#8217;ll use the <a href=\"https:\/\/github.com\/adafruit\/MAX6675-library\" target=\"_blank\" rel=\"noreferrer noopener\">max6675 library from Adafruit<\/a>.<\/p>\n\n\n\n<p>Follow the next steps to install the library in your Arduino IDE:<\/p>\n\n\n\n<p>Open your Arduino IDE and go to&nbsp;<strong>Sketch&nbsp;<\/strong>&gt;&nbsp;<strong>Include Library<\/strong>&nbsp;&gt;&nbsp;<strong>Manage Libraries<\/strong>. The Library Manager should open.<\/p>\n\n\n\n<p>Search for \u201c<strong>max6675<\/strong>&nbsp;\u201d in the search box and install the library from Adafruit.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"786\" height=\"443\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/install-MAX6675-library-arduino-IDE.png?resize=786%2C443&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Installing MAX6675 Arduino Library\" class=\"wp-image-109030\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/install-MAX6675-library-arduino-IDE.png?w=786&amp;quality=100&amp;strip=all&amp;ssl=1 786w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/install-MAX6675-library-arduino-IDE.png?resize=300%2C169&amp;quality=100&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/install-MAX6675-library-arduino-IDE.png?resize=768%2C433&amp;quality=100&amp;strip=all&amp;ssl=1 768w\" sizes=\"(max-width: 786px) 100vw, 786px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"code\"><span style=\"font-size: inherit;\">Code &#8211; Get Temperature from K-Type Thermocouple with MAX 6675 Amplifier<\/span><\/h2>\n\n\n\n<p>Getting temperature from the K-Type thermocouple with the ESP32 is very simple. The library provides an example that gets temperature and displays the results on the Arduino IDE Serial monitor.<\/p>\n\n\n\n<p> The code was adapted from the <a href=\"https:\/\/github.com\/adafruit\/MAX6675-library\/tree\/master\/examples\/serialthermocouple\" target=\"_blank\" rel=\"noreferrer noopener\">example<\/a> provided by the library to make it compatible with the ESP32.<\/p>\n\n\n<pre style=\"max-height: 40em; margin-bottom: 20px;\"><code class=\"language-c\">\/\/ this example is public domain. enjoy! https:\/\/learn.adafruit.com\/thermocouple\/\n\n#include &quot;max6675.h&quot;\n\nint thermoDO = 19;\nint thermoCS = 23;\nint thermoCLK = 5;\n\nMAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);\n\nvoid setup() {\n  Serial.begin(9600);\n\n  Serial.println(&quot;MAX6675 test&quot;);\n  \/\/ wait for MAX chip to stabilize\n  delay(500);\n}\n\nvoid loop() {\n  \/\/ basic readout test, just print the current temp\n  \n  Serial.print(&quot;C = &quot;); \n  Serial.println(thermocouple.readCelsius());\n  Serial.print(&quot;F = &quot;);\n  Serial.println(thermocouple.readFahrenheit());\n  \n  \/\/ For the MAX6675 to update, you must delay AT LEAST 250ms between reads!\n  delay(1000);\n}\n<\/code><\/pre>\n\t<p style=\"text-align:center\"><a class=\"rntwhite\" href=\"https:\/\/github.com\/RuiSantosdotme\/Random-Nerd-Tutorials\/raw\/master\/Projects\/ESP32\/ESP32_Thermocouple.ino\" target=\"_blank\">View raw code<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"> How the Code Works<\/h3>\n\n\n\n<p>First, include the <span class=\"rnthl rntliteral\">max6675.h<\/span> library.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>#include \"max6675.h\"<\/code><\/pre>\n\n\n\n<p>Define the pins that are interfacing with the MAX6675 thermocouple amplifier.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>int thermoDO = 19;\nint thermoCS = 23;\nint thermoCLK = 5;<\/code><\/pre>\n\n\n\n<p>Create a MAX6675 object called thermocouple on the pins we&#8217;ve defined previously.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO);<\/code><\/pre>\n\n\n\n<p>In the <span class=\"rnthl rntliteral\">setup()<\/span>, initialize the Serial Monitor at a baud rate of 9600.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>Serial.begin(9600);<\/code><\/pre>\n\n\n\n<p>In the <span class=\"rnthl rntliteral\">loop()<\/span>, we read the temperature and display it on the Serial Monitor. The library provides a method to read the temperature in Celsius and a method to read the temperature in Fahrenheit degrees.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><span class=\"rnthl rntliteral\">thermocouple.readCelsius()<\/span>: returns temperature in Celsius degrees.<\/li><li><span class=\"rnthl rntliteral\">thermocouple.readFahrenheit()<\/span>: returns temperature in Fahrenheit degrees.<\/li><\/ul>\n\n\n\n<p>The following lines read the temperature and display it on the Serial Monitor.<\/p>\n\n\n\n<pre class=\"wp-block-code language-c\"><code>Serial.print(\"C = \"); \nSerial.println(thermocouple.readCelsius());\nSerial.print(\"F = \");\nSerial.println(thermocouple.readFahrenheit());<\/code><\/pre>\n\n\n\n<p>As you can see, it&#8217;s very simple to get temperature readings using the K-type thermocouple with the MAX6675 amplifier.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration<\/h2>\n\n\n\n<p>Upload the code to your ESP32 board. Don&#8217;t forget the select the board you&#8217;re using in <strong>Tools <\/strong>&gt; <strong>Board <\/strong>and select the COM port your board is connected to in <strong>Tools <\/strong>&gt; <strong>Port<\/strong>.<\/p>\n\n\n\n<p>After uploading the code to the ESP32, open the Serial Monitor at a baud rate of 9600. Press the ESP32 on-board RST button.<\/p>\n\n\n\n<p>New temperature readings are displayed on the Serial Monitor every second.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"500\" src=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/Type-K-thermocouple-temperature-serial-monitor.png?resize=601%2C500&#038;quality=100&#038;strip=all&#038;ssl=1\" alt=\"Type-J Thermocouple Example Serial Monitor\" class=\"wp-image-109145\" srcset=\"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/Type-K-thermocouple-temperature-serial-monitor.png?w=601&amp;quality=100&amp;strip=all&amp;ssl=1 601w, https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/02\/Type-K-thermocouple-temperature-serial-monitor.png?resize=300%2C250&amp;quality=100&amp;strip=all&amp;ssl=1 300w\" sizes=\"(max-width: 601px) 100vw, 601px\" \/><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up<\/h2>\n\n\n\n<p>In this tutorial, you learned how to read temperature using the k-type thermocouple with the MAX6675 amplifier. Thermocouples have a wide temperature measurement range and allow you to read very high temperatures\u2014as high as 1024\u00baC (1875\u00baF) when using k-type thermocouple with MAX6675.<\/p>\n\n\n\n<p>We have tutorials for other popular sensors with the ESP32 board that you may like:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a style=\"font-size: inherit;\" href=\"https:\/\/randomnerdtutorials.com\/esp32-mqtt-publish-ds18b20-temperature-arduino\/\">ESP32 with DS18B20:&nbsp;<strong>Temperature Sensor<\/strong><\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-mqtt-publish-bme680-arduino\/\">ESP32 with BME680:&nbsp;<strong>Gas, Pressure, Humidity, and Temperature<\/strong>&nbsp;<strong>Sensor<\/strong><\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-mqtt-publish-bme280-arduino\/\">ESP32 with BME280:&nbsp;<strong>Temperature, Humidity, and Pressure Sensor<\/strong><\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-dht11-dht22-temperature-humidity-sensor-arduino-ide\/\">ESP32 DHT11\/DHT22:&nbsp;<strong>Temperature, and Humidity Sensor<\/strong><\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-bmp388-arduino\/\">ESP32 with BMP388:&nbsp;<strong>Altimeter Sensor<\/strong><\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-hc-sr04-ultrasonic-arduino\/\">ESP32 HC-SR04:&nbsp;<strong>Ultrasonic Distance Sensor<\/strong><\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-pir-motion-sensor-interrupts-timers\/\">ESP32 PIR:&nbsp;<strong>Motion Sensor<\/strong><\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-with-bmp180-barometric-sensor\/\">ESP32 BMP180:&nbsp;<strong>Pressure Sensor<\/strong><\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/esp32-bh1750-ambient-light-sensor\/\">ESP32 with  BH1750 <strong>Ambient Light Sensor<\/strong><\/a><\/li><\/ul>\n\n\n\n<p>Learn more about the ESP32 with our resources:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/randomnerdtutorials.com\/learn-esp32-with-arduino-ide\/\">Learn ESP32 with Arduino IDE (eBook + video course)<\/a><\/li><li><a href=\"https:\/\/randomnerdtutorials.com\/build-web-servers-esp32-esp8266-ebook\/\">Build Web Servers with ESP32 and ESP8266 eBook<\/a><\/li><li><a style=\"font-size: inherit;\" href=\"https:\/\/randomnerdtutorials.com\/projects-esp32\/\">More ESP32 tutorials and projects\u2026<\/a><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, you&#8217;ll learn how to read temperature using a K-Type Thermocouple with the MAX6675 amplifier with the ESP32 board. A K-type thermocouple is a type of temperature sensor &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"ESP32: K-Type Thermocouple with MAX6675 Amplifier\" class=\"read-more button\" href=\"https:\/\/randomnerdtutorials.com\/esp32-k-type-thermocouple-max6675\/#more-109028\" aria-label=\"Read more about ESP32: K-Type Thermocouple with MAX6675 Amplifier\">CONTINUE READING \u00bb<\/a><\/p>\n","protected":false},"author":5,"featured_media":109142,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[276,281,277,299,264],"tags":[],"class_list":["post-109028","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-esp32","category-esp32-project","category-esp32-arduino-ide","category-0-esp32","category-project"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/randomnerdtutorials.com\/wp-content\/uploads\/2022\/01\/ESP32-Thermocouple-Type-K-MAX6675.jpg?fit=1280%2C720&quality=100&strip=all&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/109028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/comments?post=109028"}],"version-history":[{"count":28,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/109028\/revisions"}],"predecessor-version":[{"id":109881,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/posts\/109028\/revisions\/109881"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media\/109142"}],"wp:attachment":[{"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/media?parent=109028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/categories?post=109028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/randomnerdtutorials.com\/wp-json\/wp\/v2\/tags?post=109028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}