added a thread to connect the queue and the serial interface