add function: send data to serial port