The WeMos D1 Mini is a popular development board based on the ESP8266 microcontroller. It is designed for Internet of Things (IoT) applications and projects,
It is just a switch toggle. There should be an example to turn a LED on/off in the Arduino IDE, it is the same thing. I believe the relay uses D1 as the switch.
Open your Arduino IDE and go to Sketch > Include Library > Manage Libraries. The Library Manager should open. Search for β DHT β on the Search box and install the DHT library from Adafruit. After installing the DHT library from Adafruit, type β Adafruit Unified Sensor β in the search box. Scroll all the way down to find the library and
ug5Sx.