thermocouple problem with arduino

hello my friends
I use a thermocouple with a map arduino
the problem I receive Forever 0 (c=0)
help me
thank you in advance

i use this programme arduino :

#include <Adafruit_MAX31855.h>
int thermoDO = 2;
int thermoCS = 4;
int thermoCLK = 7;
Adafruit_MAX31855 thermocouple(thermoCLK, thermoCS, thermoDO);
void setup() {
Serial.println(“MAX31855 test”);
void loop() {

Serial.print("Internal Temp = ");

double c = thermocouple.readCelsius();
if (isnan(c)) {
Serial.println(“Something does not work with the thermocouple!”);
} else {
Serial.print("C = ");


Is that the Adafruit example program?

Why have you not put your code in code tags as requested in the "How to use this forum" ?


Do you have a thermocouple hooked up (and are sure its not open)?

Do you have the polarity correct on the thermocouple?

Do you have a scope, can you tell is SPI communications is working?