Function that determines the stage of the reflow curve

This is a preliminary function that has not yet been tested on the
arduino. Not sure if it works yet...