Temperature Averaging

Just like to say thanks for the help guys, turned out it was because I did not initialized the variables to zero before I used them. Now it works great, Thanks!