I recommend to install the ESP8266 v.2.7.4 package version which is known to work well. You can do this in the Arduino Board manager > Search “esp8266” > select v.2.7.4 > install:

-CH340 (ใช้ใน Arduino Compatible, NodeMCUV3, Wemos D1 mini) : https://www.wemos.cc/en/latest/ch340_driver.html
-CP210X (ใช้ใน NodeMCU V2) : https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers
