Averaging temperatures using an array

this works way better to smooth out any noise