@smoochypea You can achieve 5 minuite send intervals easily enough by sleeping for 5minuites - however long execution took.
(read the time at the start and end of executing. run time is end - start sleep for 5 minuites - runtime as long as recording and sending data takes < 5 minuites you'll end up with a nicely timed 5 minuite loop)
That said. without knowing more about what the rest of the datacollection code does it's rather hard to make recommendations.