Looking back to the actual WEMOS Mini D1 board, it has a properly secured USB port, and nice pads around all relevant vias. There seems to be an effort to revise and improve the board as time goes on.
It can be quite confusing to get the pin numbers correct. For an UNO based form factor, IMO, the D1 (not the D1 R2) is a better choice. On the esp8266 platform. a naked constant like 7 or 6 specify a GPIO bit number. If you have an UNO type form factor board like a D1 or a D1 R2 board you cannot use naked constants like you used on a UNO board.
Your Wemos appears to be a 3.3V device. It only puts out 3.3V on it's logic lines. Get a voltmeter and measure the voltage on pin D3 when it is set to HIGH. I bet dollars to doughnuts it's putting out 3.3V. Buy a 3.3V of your digital relay and use that instead (Assuming your Wemos has enough current out of it's regulator to power the relay. –
A simple USB power supply that meets these requirements can be found here: 5V USB-Netzteil mit Sicherheitstransformator | 07-314.0; Symbol of a short-circuit proof, closed safety transformer Photos. Minimal build up with SMD resistor on the back and only one connected DS18B20. Setup. You have two options to upload the software to the WeMos D1 mini. .