I am an Electronic engineer, PCB Layout, Circuit Design, microcontroller, STM32 microcontroller, C programming expert having past experiences with ,Altium, arduino, pic, AVR, chipkit and Texas instruments microcontMore
Your code is ready.
I assume you have python3 and pip installed on your pc. You need to install pyserial using terminal command
pip3 install pyserial
If python is not installed please run terminal commaMore