Lab2 

This is untested and I haven't compiled it yet, but I think this will do what he wants. Only thing to add is a way to tell how many devices there are. That way it will not post averages for all 32 devices.

take a look and tell me what you think