title: Python to automatically select serial ports (for Arduino)
body: <p>Currently the python program must know which port a device (Arduino) is on before Python can communicate the device.</p>
  
  <p><strong>Problem:</strong> Whenever the device is plugged out and back in, its COM port changes, so the correct serial port must be given to Python again for it to find the device. </p>
  
  <p>How can Python (using <code>pySerial</code>) automatically search for the correct serial port to use? Is it possible for python to correctly identify the device on a serial port as an Arduino?</p>