Make an instance by providing your model, baudrate (prefeferably 9600) and COM port - whichever the amazing device is connected to: Finally add the following line in your training process - ...