Working example for Serial Port Communication