MAX 6675 Average Value Print

Hello Dear Friends

Well , I looked all topics and I did not find any example about average temperature print on the serial display , now I m using Max 6675 and all temperature data are coming very well .But my wish sum 10 values and print its .(Normal analog output e.g.(A0) ı can take all data values but in max 6675 digital high and low mental coming for me hard .

my code is working just ı need your helps after ı wanna see avarega value of temperature .
Last thing on the excel how can ı see my temperature ı know QL lab view just ı do not know code help to me for c c++ codes , I am the beginner for arduino but for physics in lab i have to use for my project .Who is the better coder ,would you mind to help to me ? On the my code add some codes and I wanna see avarage ,
Best Regards

#include <max6675.h>

// ThermoCouple
int thermo_gnd_pin = 45;
int thermo_vcc_pin = 47;
int thermo_so_pin = 49;
int thermo_cs_pin = 51;
int thermo_sck_pin = 53;

MAX6675 thermocouple(thermo_sck_pin, thermo_cs_pin, thermo_so_pin);

void setup() {

pinMode(thermo_vcc_pin, OUTPUT);
pinMode(thermo_gnd_pin, OUTPUT);
digitalWrite(thermo_vcc_pin, HIGH);
digitalWrite(thermo_gnd_pin, LOW);

void loop() {



MAX6675 KTYPE SENSOR , you can take all temperature data from EXCEL I did it , you can use friends .

include "max6675.h"

unsigned long int milli_time; int thermoDO = 4; int thermoCS = 5; int thermoCLK = 6;

MAX6675 thermocouple(thermoCLK, thermoCS, thermoDO); int vccPin = 3; int gndPin = 2; int sumTemp = 0; int counter = 0;

void setup() { Serial.begin(128000); //Fastest baudrate Serial.println("CLEARDATA"); Serial.println("LABEL,Computer Time,Time (Milli Sec.),Temperature"); // use Arduino pins pinMode(vccPin, OUTPUT); digitalWrite(vccPin, HIGH); pinMode(gndPin, OUTPUT); digitalWrite(gndPin, LOW);

// wait for MAX chip to stabilize delay(500); }

void loop() { milli_time = millis(); // basic readout test, just print the current temp sumTemp = sumTemp + thermocouple.readCelsius(); counter++; if (counter == 10 ) { counter = 0; Serial.print("DATA,TIME,"); Serial.print(milli_time); Serial.print(","); Serial.println(sumTemp/10); sumTemp = 0; } delay(750); }