For a start the Thingspeak section is outside the loop() so probably wont compile. Use the arduino IDE Tools->Format menu to nicely indent your code so its easy to pick these things up.
I suggest you work through some of the Examples that come with the Thingspeak library and go from there.