Wemos D1 mini upload failure

having trouble placing code onto my wemos board. fresh install of audrino ide, correct drivers for the board, com port recognizing the board. no luck. brand new to audrino so i am likely doing something wrong. here is the error code.

Arduino: 1.8.16 (Windows Store 1.8.51.0) (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z10initSerialv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:38: undefined reference to `_ZN10SpeedServo6attachEh'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:38: undefined reference to `_ZN10SpeedServo9moveNowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z10initServosv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:41: undefined reference to `_ZN10SpeedServo6attachEh'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:41: undefined reference to `_ZN10SpeedServo9moveNowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:42: undefined reference to `_ZN10SpeedServo6attachEh'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:44: undefined reference to `_ZN10SpeedServo9moveNowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:46: undefined reference to `_ZN9StatusLed6setPinEh'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o:(.text._Z7initLedv+0x8): undefined reference to `_ZN9StatusLed7turnOffEv'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z7initLedv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:49: undefined reference to `_ZN9StatusLed6setPinEh'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:50: undefined reference to `_ZN9StatusLed7turnOffEv'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o:(.text._Z10initSensorv+0x4): undefined reference to `_ZN15ProximitySensor6attachEhhh'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z10initSensorv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:54: undefined reference to `_ZN15ProximitySensor6attachEhhh'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `setup':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:28: undefined reference to `_ZN10SpeedServo10moveSlowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:28: undefined reference to `_ZN10SpeedServo10moveFastToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z7runHalfv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:30: undefined reference to `_ZN10SpeedServo10moveSlowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:32: undefined reference to `_ZN10SpeedServo10moveFastToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:183: undefined reference to `_ZN10SpeedServo10moveFastToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z11openLidSlowv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:186: undefined reference to `_ZN10SpeedServo10moveSlowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z11openLidFastv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:193: undefined reference to `_ZN10SpeedServo10moveFastToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z12closeLidSlowv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:197: undefined reference to `_ZN10SpeedServo10moveSlowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z12closeLidFastv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:201: undefined reference to `_ZN10SpeedServo10moveFastToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z14flipSwitchSlowv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:209: undefined reference to `_ZN10SpeedServo10moveSlowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:209: undefined reference to `_ZN10SpeedServo10moveSlowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z7runSlowv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:132: undefined reference to `_ZN10SpeedServo10moveFastToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z14flipSwitchFastv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:214: undefined reference to `_ZN10SpeedServo10moveFastToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z16runFastWithDelayv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:169: undefined reference to `_ZN10SpeedServo10moveSlowToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z15runPeekThenFastv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:158: undefined reference to `_ZN10SpeedServo10moveFastToEi'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_Z3runv':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:111: undefined reference to `_ZN9StatusLed6turnOnEv'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:112: undefined reference to `_ZN15ProximitySensor9isInRangeEv'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `loop':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:57: undefined reference to `_ZN9StatusLed6turnOnEv'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:59: undefined reference to `_ZN9StatusLed7turnOffEv'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:62: undefined reference to `_ZN15ProximitySensor9isInRangeEv'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:71: undefined reference to `_ZN17SparkFun_APDS9960C1Ev'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_ZN10SpeedServoC4Ev':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:84: undefined reference to `_ZN17SparkFun_APDS9960C1Ev'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/useless-box.ino:85: undefined reference to `_ZN17SparkFun_APDS9960D1Ev'

c:/users/user/documents/arduinodata/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: sketch\useless-box.ino.cpp.o: in function `_ZN15ProximitySensorC4Ev':

C:\Users\User\Downloads\useless-box-master\useless-box-master\useless-box/proximity-sensor.h:8: undefined reference to `_ZN17SparkFun_APDS9960D1Ev'

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "Servo.h"

Used: C:\Users\User\Documents\ArduinoData\packages\esp8266\hardware\esp8266\3.0.2\libraries\Servo

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.51.0_x86__mdqgnx93n4wtt\libraries\Servo

exit status 1

Error compiling for board LOLIN(WEMOS) D1 R2 & mini.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

fix this

useless-box.ino:38: undefined reference to `_ZN10SpeedServo6attachEh'

it says that in useless-box.ino, line 38, you are using _ZN10SpeedServo6attachEh and the compiler has no clue what this is.

Do yourself a favour and please read How to get the best out of this forum if not done yet.

It's not an upload failure, it is a compile error.
Post your code and the errors in code tags as referenced in the link by J-M-L. The forum software messes up the formatting if you don't use code tags.

Please post a link to where you downloaded this "useless-box" sketch from. That will give us the information we need to provide you with detailed instructions for fixing this error.