Step 1: Open any browser (Chrome, Mozilla, IE).
Step 2: Search Blynk IoT in the search bar.
Step 3: Open the first link (Blynk IoT platform: for businesses and developers https://blynk.io).
Step 4: Click on the start free.
Step 5: Then Create an account with your email account.
Step 6: Go to your Email and set a password for blynk and complete the setup.
Step 7: Again, come to the blynk webpage and log in with your email and same password.
Step 8: Then click on the new template and fill in the required data like name and hardware.
(Give the suitable name and in the hardware, section select ESP8266 and connection type is WIFI)
Step 9: Then go to the DataStream section and click create new DataStream. Then select digital pin.
fill the name and select the GPIO pin of the board (not the normal pin D1, D2...like D1=GPIO5).
select the device type that means output or input.
Step 10: Then click on the Web Dashboard section and drag the switch to the dashboard.
Click on the setting button on the switch and fill up the name and select the data stream you created.
and leave remaining as same and click on save.
Step 11: Click on the Save button in the top right corner. Hurray...... Your Web Dashboard is ready to work.
Step 12: Now click on the search button on the blynk website and click on the new device. then click on from template.
Select the template you already created. You have successfully created the device.
Step 13: Now open the Arduino IDE and click on Files on the top left corner then examples blynk then boards Wi-Fi then node MCU
(Files->Examples->Blynk->Boards WIFI->NodeMcu). A new program will open.
Step 14: In that program change the WIFI credentials as for your WIFI name and password and put the BLYNK_TEMPLATE_ID, BLYNK_DEVICE_NAME,
BLYNK_AUTH_TOKEN that you get from the device you created before on the blynk website.
Step 15: Now connect the nodeMcu with the laptop and check the port and upload the program.
Step 16: After uploading the program just go to the blynk website and check whether it will work or not.