#thingspeak conn = urllib2.urlopen(baseURL + '&field1=%s&field2=%s' % (temp, humidity)) print conn.read() # Closing the connection conn.close()