So issue 1: "averageTemp" is not writing to the thingspeak servers properly. Thingspeak is only getting a value of 0. If I take out line 21, then I get a "averageTemp is out of scope" error when compiling on line 130.
Issue 2: after adding the thingspeak sections into the code, "temp" is now showing out of scope on line 164. My brain hurts... I can't figure it out.
Thank you in advance for any assistance!!!
The code is too long to post in the message, so I'm linking it below...