Great job ! I'm trying to do the same thing but I don't understand how to upload floating data . In your code you upload decimal data
sprintf(data,"%d,%d,%d,%d,%d,%d,%d,%d",val1,val2,val4,val2/1000,val3,val3/1000, successes + 1, failures);
but on the pachube I see you have floating numbers . HOW can I do the same ???