- You must DISCONNECT (or exit) p5.serialcontrol Sketch before uploading to MCU. - Otherwise, the UART port used for code upload will be blocked by UART comms to P5. const int adcPin = 1; //sensor ...