Смотреть видео: esp8266 - Controling 5V relay with Wemos D1 R1 - Arduino Stack Exchange