I wanted to make a relay controlled by arduino mega and esp8266. please provide sketch code to control relay
Welcome to the community!
We actually provide the code within the product dashboard, if you click on the widget that you’d like to use and then if Arduino is selected, there should be option to ‘view sketch file’. You can also peruse the community, lots of users have uploaded sample code that you can use for your use case.