The 5V supply seems to work fine, but I have a few additional questions.
- is it correct that the link is PMW3360 and not PMW3389?
- The MOTION pin is connected to GND, what is its function?
- The overall soldering is not clean, have you checked the connections?
- Does <PMW3389.h> support nRF52840?
- Where did you get <PMW3389.h>?
- Have you tried “pinMode(D7, OUTPUT);”?