import serial in python 3.9 code example Example: install serial python python -m pip install pyserial