Initialized the buffer when receiving data from the COM port and added error handling. The plugin should now start plotting!