log data in endless loop and poll every 30 seconds