SerialPort class implements serial port to send and receive data.