Go below in description for code.
↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓
This error comes when the serial port is busy here we use this serial port to communicate with Bluetooth that's why it produces error while uploading code disconnect Bluetooth from Arduino/Nodemcu and upload your code again
***Download my Home Automation Code from Git hub page***
git hub code: https://github.com/dhruv9045/nodemcu-...
**MQTTcloud login**
https://customer.cloudmqtt.com/login
**Contribute me for improvement in my videos**
https://www.buymeacoffee.com/dksdev
Paypal: https://www.paypal.me/dkstechnology
Thank's to see my first video on Home Automation