send and recive data from serial withe delay