Zbotic Logo Zbotic Logo
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

  • Shop
  • About Us
  • Contact Us
  • Reseller
  • Blogs
020 69134444
1800 209 0998
[email protected]
Help Desk
Facebook Twitter Instagram Linkedin YouTube
Zbotic Logo Zbotic Logo
0 0

View Wishlist Add all to cart

0 0
0 Shopping Cart
Shopping cart (0)
Subtotal: ₹0.00

View cartCheckout

All departments
  • 3D Print Service
  • 3D Printer
  • Batteries & Chargers
  • Development Boards
  • Drone Parts
  • EBike parts
  • Sensor Modules
  • Electronic Components
  • Electronic Modules
  • IoT and Wireless
  • Mechanical Parts and Workbench Tools
  • Motors & Drivers & Pumps & Actuators
  • DIY and Robot Kits
  • Show more
  • Home
  • Shop
  • Sale
  • 3D Print Service
  • PCB Service
  • B2B
  • Blogs
  • Contact Us
Return to previous page
Home IoT & Smart Home

Blynk 2.0 with ESP32: Cloud Dashboard for IoT Projects

Blynk 2.0 with ESP32: Cloud Dashboard for IoT Projects

March 11, 2026 /Posted byJayesh Jain / 0

If you’ve been building IoT projects with ESP32, you’ve probably heard about Blynk 2.0 ESP32 cloud dashboard — the most popular platform for visualising sensor data and controlling hardware remotely. Whether you want to monitor your home environment, track a vehicle, or control appliances from your phone, Blynk 2.0 makes it incredibly simple. In this tutorial, we’ll walk through everything you need to know to set up a fully working cloud dashboard using an ESP32 board.

Table of Contents

  1. What is Blynk 2.0 and How is it Different?
  2. Hardware You Need
  3. Setting Up Blynk 2.0 Account and Template
  4. Writing ESP32 Code for Blynk 2.0
  5. Adding DHT11/BME280 Sensor to the Dashboard
  6. Advanced Dashboard Features: Automations and Events
  7. Frequently Asked Questions

What is Blynk 2.0 and How is it Different?

Blynk was originally launched as a simple drag-and-drop IoT platform, but Blynk 2.0 (now simply called “Blynk”) is a complete rewrite that offers far more power, stability, and scalability. The old Blynk (legacy) used virtual pins and a token-based approach which was great for beginners, but lacked enterprise features.

Blynk 2.0 introduces:

  • Templates: Reusable device blueprints so you can deploy the same firmware to hundreds of devices.
  • Datastreams: Structured channels for each sensor value or control signal, with data type enforcement.
  • Web Dashboard: A browser-based interface alongside the mobile app — perfect for desktop monitoring.
  • Automations: Rule-based triggers (e.g., send a notification if temperature exceeds 35°C).
  • Events and Logs: Track when specific conditions occurred over time.
  • Over-The-Air (OTA) Updates: Push firmware updates remotely without physical access.

For Indian makers and students, Blynk 2.0’s free tier is generous enough for personal and college projects. You get up to 2 free devices with full feature access, which is more than enough to get started.

Hardware You Need

To follow this tutorial, you’ll need the following components:

  • ESP32 development board (any variant works — DevKit, NodeMCU-32S, etc.)
  • DHT11 or BME280 temperature/humidity sensor
  • Jumper wires
  • USB cable for programming
  • A smartphone with the Blynk app installed (Android/iOS)
  • A Wi-Fi network (2.4GHz)
Ai Thinker NodeMCU-32S-ESP32 Development Board

Ai Thinker NodeMCU-32S ESP32 Development Board

A reliable dual-core ESP32 board with onboard Wi-Fi and Bluetooth — perfect for Blynk 2.0 cloud projects with plenty of GPIO pins.

View on Zbotic

DHT11 Digital Relative Humidity and Temperature Sensor Module

DHT11 Digital Temperature and Humidity Sensor Module

An affordable and easy-to-use sensor ideal for reading ambient temperature and humidity to stream live data to your Blynk dashboard.

View on Zbotic

Setting Up Blynk 2.0 Account and Template

Getting started with Blynk 2.0 is straightforward. Follow these steps:

Step 1: Create a Free Account

Go to blynk.io and register for a free account. Verify your email and log in to the Blynk console.

Step 2: Create a New Template

In the Blynk console, click on Developer Zone → Templates → + New Template. Name it something like “ESP32 Sensor Monitor”, choose ESP32 as the hardware, and select Wi-Fi as the connection type. Click Done.

Step 3: Create Datastreams

Under your template, navigate to Datastreams and add the following:

  • Virtual Pin V0 — Name: Temperature, Data Type: Double, Min: -40, Max: 80
  • Virtual Pin V1 — Name: Humidity, Data Type: Double, Min: 0, Max: 100
  • Virtual Pin V2 — Name: LED Control, Data Type: Integer, Min: 0, Max: 1

Step 4: Build the Web Dashboard

Go to the Web Dashboard tab and drag widgets onto the canvas. Add a Gauge widget for Temperature (assign to V0), a Gauge for Humidity (V1), and a Switch widget for LED Control (V2). Arrange them neatly and save.

Step 5: Create a Device

In the Blynk console, go to Devices → + New Device → From Template, select your template, and name the device. You’ll get an BLYNK_AUTH_TOKEN — copy it, you’ll need it in the firmware.

Also install the Blynk IoT app on your phone, log in, and you’ll see the mobile dashboard auto-created from your template.

Writing ESP32 Code for Blynk 2.0

Open Arduino IDE and install the Blynk library (version 1.3.0 or newer) via Library Manager. Also install the DHT sensor library by Adafruit and the Adafruit Unified Sensor library.

Here’s the complete firmware:

#define BLYNK_TEMPLATE_ID   "TMPLxxxxxxxx"
#define BLYNK_TEMPLATE_NAME "ESP32 Sensor Monitor"
#define BLYNK_AUTH_TOKEN    "YourAuthTokenHere"

#include <WiFi.h>
#include <BlynkSimpleEsp32.h>
#include <DHT.h>

#define DHTPIN 4
#define DHTTYPE DHT11
#define LED_PIN 2

DHT dht(DHTPIN, DHTTYPE);
BlynkTimer timer;

char ssid[] = "YourWiFiSSID";
char pass[] = "YourWiFiPassword";

void sendSensorData() {
  float humidity = dht.readHumidity();
  float temperature = dht.readTemperature();

  if (isnan(humidity) || isnan(temperature)) {
    Serial.println("Failed to read from DHT sensor!");
    return;
  }

  Blynk.virtualWrite(V0, temperature);
  Blynk.virtualWrite(V1, humidity);

  Serial.print("Temp: "); Serial.print(temperature);
  Serial.print(" C, Humidity: "); Serial.println(humidity);
}

BLYNK_WRITE(V2) {
  int value = param.asInt();
  digitalWrite(LED_PIN, value);
}

void setup() {
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);
  dht.begin();
  Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
  timer.setInterval(2000L, sendSensorData);
}

void loop() {
  Blynk.run();
  timer.run();
}

Replace BLYNK_TEMPLATE_ID, BLYNK_TEMPLATE_NAME, BLYNK_AUTH_TOKEN, and your Wi-Fi credentials. Upload the code to your ESP32.

Open the Serial Monitor at 115200 baud. You should see the ESP32 connecting to Wi-Fi and then printing sensor readings every 2 seconds. Open the Blynk app or web console — you’ll see the gauges updating in real time!

Adding DHT11/BME280 Sensor to the Dashboard

While the DHT11 is great for beginners, the BME280 offers higher accuracy and also measures barometric pressure — useful for weather stations and altitude tracking. Here’s how to upgrade your setup:

Wiring the BME280 to ESP32

The BME280 communicates over I2C. Connect:

  • VCC → 3.3V on ESP32
  • GND → GND
  • SDA → GPIO 21
  • SCL → GPIO 22

Install the Adafruit BME280 Library in Arduino IDE.

GY-BME280-3.3 Precision Altimeter Atmospheric Pressure Sensor Module

GY-BME280-3.3 Precision Altimeter Atmospheric Pressure Sensor Module

Upgrade your Blynk dashboard with pressure and altitude readings using this high-accuracy I2C sensor — 3.3V compatible and breadboard-friendly.

View on Zbotic

Add a third datastream V3 (Pressure, Double, Min: 900, Max: 1100) to your Blynk template, and update the firmware to use the BME280 library. Your dashboard now shows temperature, humidity, and pressure in real time.

Advanced Dashboard Features: Automations and Events

Blynk 2.0’s automation engine lets you set rules that trigger actions without any code changes. Here are some powerful use cases:

Temperature Alert Notification

Go to Automations → + New Automation. Set the condition: “When Temperature (V0) is above 35” → Action: “Send Notification: Warning! Temperature is too high.” Save and enable it. You’ll now receive a push notification on your phone whenever the temperature threshold is crossed.

Scheduled Control

Create a time-based automation: “Every day at 7:00 PM → Set V2 to 1” and another: “Every day at 11:00 PM → Set V2 to 0”. This turns your LED (or relay) on and off on schedule — perfect for automating lights or fans.

Events and Logging

In your template, create a custom Event (e.g., “high_temp”) with a notification message. In your firmware, call Blynk.logEvent("high_temp"); when the condition is met. Events appear in the Event Log on the web dashboard, giving you a timestamped history of anomalies.

Over-The-Air Firmware Updates

Blynk 2.0 supports OTA updates via the Blynk.Air feature (available on paid plans). For free-tier users, you can still use the Blynk Edgent library which provides a self-provisioning Wi-Fi setup (no hardcoded credentials) and basic OTA support.

2 x 18650 Lithium Battery Shield for ESP32

2 x 18650 Lithium Battery Shield for ESP32

Make your Blynk IoT project portable with this dual 18650 battery shield — provides clean 5V output and onboard USB charging for field deployments.

View on Zbotic

Frequently Asked Questions

Is Blynk 2.0 free to use with ESP32?

Yes. Blynk 2.0 offers a free tier that supports up to 2 active devices, unlimited datastreams, and access to automations and events. This is sufficient for most personal and college projects. Paid plans are needed for more devices or commercial deployments.

Can I use Blynk 2.0 with the old ESP32 Blynk code?

No. Blynk 2.0 is completely different from the legacy Blynk. You need to update your library to the latest Blynk version (1.3.x), create a new template on blynk.io, and rewrite your firmware using the new macros (BLYNK_TEMPLATE_ID, BLYNK_TEMPLATE_NAME). The old tokens and legacy server are no longer active.

Why is my ESP32 not connecting to Blynk 2.0?

Common reasons include: wrong or expired auth token, Wi-Fi credentials mismatch, the Blynk library version is outdated (must be 1.3.0+), or the Template ID/Name don’t match what’s defined in your Blynk console. Double-check all three #define macros at the top of your sketch.

How do I add more sensors to my Blynk dashboard?

Simply add more datastreams (Virtual Pins) in your template on the Blynk console, add the corresponding widgets to the dashboard, and write the sensor values to those pins in your ESP32 firmware using Blynk.virtualWrite(Vx, value);. You can monitor up to many sensors simultaneously.

Does Blynk 2.0 work without internet?

Blynk 2.0 requires internet connectivity as it routes through Blynk’s cloud servers. For local-only setups, consider running a local Blynk server (Blynk Local Server — open source) or look at alternatives like Home Assistant MQTT. However, for most Indian home and lab projects, cloud connectivity is not an issue.

Ready to Build Your IoT Dashboard?

Get all the ESP32 boards, sensors, and accessories you need for your Blynk 2.0 project at Zbotic.in — India’s trusted electronics components store. Fast delivery across India with genuine components.

Tags: Blynk 2.0, Cloud IoT, ESP32, ESP32 projects, IoT Dashboard
Share Post
  • Facebook
  • Linkedin
  • Whatsapp
Raspberry Pi Barcode Scanner: ...
blog raspberry pi barcode scanner build a retail scan system 595259
blog esp32 freertos tasks concurrent iot operations explained 595266
ESP32 FreeRTOS Tasks: Concurre...

Related posts

Svg%3E
Read more

IoT Home Insurance Sensor Kit: Leak, Smoke, and Motion

April 1, 2026 0
Table of Contents IoT and Home Insurance Water Leak Detection Smoke and Fire Detection Motion and Intrusion Sensing Building the... Continue reading
Svg%3E
Read more

IoT Pet Tracker: GPS Collar with Geofencing Alerts

April 1, 2026 0
Table of Contents Introduction and Overview Hardware Components Required GPS Module Integration with ESP32 Cloud Platform Setup Real-Time Tracking Dashboard... Continue reading
Svg%3E
Read more

IoT Aquaponics Controller: Fish and Plant Automation

April 1, 2026 0
Table of Contents The Water Monitoring Challenge in India Sensor Technologies for Water Building the Sensor Node Data Transmission and... Continue reading
Svg%3E
Read more

IoT Composting Monitor: Temperature and Moisture Tracking

April 1, 2026 0
Table of Contents Why Temperature Monitoring Matters Sensor Selection Guide Hardware Assembly and Wiring Firmware Development Cloud Data Logging Alert... Continue reading
Svg%3E
Read more

IoT Beehive Monitor: Weight, Temperature, and Humidity

April 1, 2026 0
Table of Contents Why Monitor Beehives Weight Measurement System Temperature and Humidity Sensing Building the Monitor Data Analysis for Bee... Continue reading

Add comment Cancel reply

Your email address will not be published. Required fields are marked

Facebook Twitter Instagram Pinterest Linkedin Youtube

Get the latest deals and more.

Download on Google Play Download on the App Store

Call us: 020 69134444 / 1800 209 0998

Monday - Saturday 09:30 AM - 06:00 PM
For Technical Supports Email: [email protected]
For Sales / Enquiries Email: [email protected]

  • My Account

    • Cart

    • Wishlist

    • Checkout

    • My Orders

    • Track Order

    • My Account

  • Information

    • FAQs

    • Blogs

    • Career

    • About Us

    • Contact Us

    • Payment Options

  • Policies

    • Privacy Policy

    • Terms & Conditions

    • GST Input Tax Credit

    • Shipping Return Policy

    • E-Waste Collection Points

    • Our Sitemap

© Zbotic.in is registered trademark of Moxie Supply Pvt Ltd – All Rights Reserved
Login
Use Phone Number
Use Email Address
Not a member yet? Register Now
Reset Password
Use Phone Number
Use Email Address
Register
Already a member? Login Now