import time time.sleep(0.1) # Wait for USB to become ready from machine import Pin from time import sleep potpin=28