Added separate thread for Arduino data

Added a separate thread for Arduino data acquisition to speed up the
main thread and remove lag.