When I run the code it gives me this error, how can I solve this
Arduino: 1.8.15 (Windows Store 188.8.131.52) (Windows 10), Board: "Arduino Uno"
Sketch uses 2226 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 204 bytes (9%) of dynamic memory, leaving 1844 bytes for local variables. Maximum is 2048 bytes.
avrdude: ser_open(): can't open device "\.\COM3": The semaphore timeout period has expired.
Problem uploading to board. See Upload – Arduino Help Center for suggestions.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.