jremington:
So, what is the trouble?
Lots of important code missing from your post.
I note in the function get_array_max_value(), max_value is not initialized to anything. Is that what you intended?
Thanks for pointing that out. Can you tell me what else is missing? I took out some stuff that was irrelevant to the question. I guess I should say that I have this before the main loop:
#include "Thermocouple.h"
Thermocouple thermocouple;
The problem is this code seems be taking a lot of time to run, which is weird because I'm not really using such a big array.