Port busy or "Access is denied"
- Arduino
- ESP32
- ESP8266
You may see
Why it happens
- Another program has the port open: a second Arduino window, mBlock, PictoBlox, a phone-link tool or a Python script.
How to fix it
- Close other Arduino windows, mBlock, PictoBlox and any Python program that reads the board.
- Close the Serial Monitor and Serial Plotter.
- Unplug the board, wait five seconds, plug it back in.
- Still stuck? Restart the computer.
It worked if: Upload works, and the Serial Monitor opens without a red message.
Related errors
Tutorials where it can happen
- 7 Segment Display with mBlock
- AI switches on a light: PictoBlox with Arduino
- Alcohol Sensor MQ-3 with Arduino and LCD
- Alternate Blinking LEDs with Arduino using mBlock
- Arduino Breathalyzer with MQ-3 Alcohol Sensor and LCD
- Automatic Blinds Control Based On Light Intensity
66 more
- Automatic LED Light with Arduino and LDR
- Automatic Plant Grow Light with Arduino and Relay
- Bluetooth Controlled Servo Motor using Arduino for Kids
- Building a Motion Detection System Using ESP32 and ESP-NOW
- Building a Rainfall Measurement and LCD Display with Arduino
- Building a Smart Plant Watering System with Soil Moisture Sensor
- Building a Sound-Activated Music Player with LCD Display
- Building a Vibration Sensor with LCD Feedback
- DHT11 Temperature and Humidity Sensor with Arduino
- Digital Input and Output with the ESP32
- Digital Inputs and Digital Outputs on the NodeMCU ESP8266
- DIY Heart Rate Monitor with Pulse Sensor and LCD Display
- ESP32 / ESP8266 - Realtime Database with Firebase
- ESP32 Async Web Server Code
- ESP32 BLE Server and Client with Arduino IDE
- ESP32 DHT11 Web Server: Show Temperature and Humidity
- ESP32 PIR Motion Sensor with Interrupts and Timers
- ESP32 Web Server: Control LED Brightness with a Slider
- ESP32/ESP8266 Data Logging to Firebase with Login
- ESP8266 NodeMCU Relay: Control AC Appliances
- Fire Alarm with Arduino and KY-026 Flame Sensor
- Gas Leakage Detection and Solenoid Valve Control with Arduino
- Gas Sensor-Based Garage Ventilation Control with LCD Display
- Guide to Using SSD1306 Display with Arduino
- Hall Effect Sensor with Arduino: Measure Magnetic Field
- Heart Rate-Based Fitness Tracker with LCD Feedback
- How to Fix HC-05 Upload Errors with SoftwareSerial
- How to Make a Smart Energy Meter with Arduino and LCD
- How to make an ESP32 Web Server?
- How to make an ESP8266 Web Server?
- How to Read Analog Signals with the ESP32?
- How to use Bluetooth on the ESP32 ?
- How to use the BLE on the ESP32?
- Interfacing ESP32 with 16x2 LCD Displays
- LDR Light Meter with Arduino and LCD
- Let's Blink an LED with Arduino using mBlock
- LM35 Temperature Sensor with Arduino
- Log DHT11 Data to Firebase Realtime Database: the Code
- Motion-Activated Security Camera with LCD Feedback
- MQ-2 Gas Sensor Arduino Code with I2C LCD
- Object Tracking and Following System with LCD Feedback
- PIR Motion Sensor Alarm with Arduino (HC-SR501 and Buzzer)
- Plant Monitoring System with Arduino: Soil Moisture and DHT22
- Put Your Web Page on a Real ESP32
- Rain Sensor with Arduino
- Reading Analog Input with Arduino
- Reading RFID Tags with RC522 and Arduino
- Real-Time Power Usage Monitor with Arduino
- RFID Access Control with Arduino and LCD
- Send Emails with ESP8266 NodeMCU
- Smart Mailbox with Arduino, Ultrasonic Sensor and Servo
- Smart Pet Door with Arduino, Ultrasonic Sensor and Servo
- Smart Plant Pot with ESP32 (IoT)
- Smoke Detection and Fire Sprinkler Control with LCD Display
- Soil Moisture Monitoring and Irrigation System with Arduino Uno
- Soil Moisture Sensor for Farming with Arduino
- Soil pH Level Monitoring and LCD Output
- Sound Level Meter with Arduino and LCD
- Task Automation with Simple Timer using the ESP32
- Temperature-Controlled Fan with Arduino and LM35
- Ultrasonic Parking Sensor with LCD Display using Arduino
- Ultrasonic Sensor and Servo Motor with Arduino Uno
- Vehicle Speed Measurement and LCD Output Using Arduino
- Visual Coding with Arduino: Blink an LED with Blocks
- Water Level Monitoring and Solar Water Heater Control
- What is a Web Socket Server?
From the official documentation. Cause and fix from Arduino Support (close other programs that block the port). Sources: Arduino Support: 'Error: avrdude' when uploading.
Didn't help? Search another error or ask us.

