The Wemos D1 R2 features an on-board switching power supply which allows you to power the board from a power supply up to 12V.
(Attention: the Wemos is a 3.3V device. If you connect it to 5V digital sensors or devices you will need a logic level converter.)
USB 2.0 ports are current limited. In some cases, when using only USB power and WIFI on the Wemos is on and sensors or other devices
are connected, the Wemos is not working correctly.