0% found this document useful (0 votes)
15 views6 pages

Water Level Sensor-1

The document outlines a lab experiment on interfacing a water sensor with NodeMCU and the Blynk IoT platform. It details the objective, tools required, working principle of the water sensor, and step-by-step instructions for setting up the Blynk app and coding in Arduino IDE. The conclusion highlights the effectiveness of the system for real-time water level monitoring and smart water management.

Uploaded by

Aditya Hogade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views6 pages

Water Level Sensor-1

The document outlines a lab experiment on interfacing a water sensor with NodeMCU and the Blynk IoT platform. It details the objective, tools required, working principle of the water sensor, and step-by-step instructions for setting up the Blynk app and coding in Arduino IDE. The conclusion highlights the effectiveness of the system for real-time water level monitoring and smart water management.

Uploaded by

Aditya Hogade
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

SY B Tech 01ETMDP2204 MDM (ETC): Introduction to IoT

Lab
Experiment No. 10
CO Mapped: CO2 LEVEL: Apply, Analyze

TITLE: Water sensor using NodeMCU and Blynk IoT platform.

OBJECTIVE: To learn interfacing of water sensor and programming of Nodemcu for Blynk IoT
cloud configuration.

Tools: Nodemcu, Arduino IDE, Connecting links, water sensor, PC etc.


Circuit Diagram:

Theory:
Water Level Sensor is a water level sensor for Arduino or NodeMCU boards. The
obtained values are analog values. It can be used with Arduino or NodeMCU immediately. It is
used to warn of low or high water levels. This sensor has relatively high sensitivity. It can be
applied to measure rainfall, warn of water levels, etc.

Working Principle: -
The resistance of the sensor varies inversely with the height of th e water as follows:
The more “immersed” the sensor is, the better the conductivity and therefore the “lower
resistance” it will have. The less “immersion” the sensor has, the lower the conductivity will be,
and the higher the resistance will be.

Electronics & Telecommunication Engg Dept DKTES’ TEI, Ichalkaranji


SY B Tech 01ETMDP2204 MDM (ETC): Introduction to IoT
Lab
Blynk IoT

The Blynk IoT Platform is an all-in-one software designed for the prototyping,
deployment, and remote management of connected devices, regardless of scale. This post will walk
you through the updated steps to help you begin upgrading your projects with Blynk.

Procedure:

BLYNK App Setup on Desktop:

1. Create your account on Blynk Paltform.

2. Click on New Template.

3. Give Name-Water Level Sensor Click on Hardware ESP8266 and click on Done.

Electronics & Telecommunication Engg Dept DKTES’ TEI, Ichalkaranji


SY B Tech 01ETMDP2204 MDM (ETC): Introduction to IoT
Lab
4. Go to the Web Dashboard. Choose Slider and drag it and drop on dashboard same
procedure for Gauge.

5. Click on Gauge setting and click on Create DataStream. Click on the Virtual Pin.
Change in PIN-> V0 and MAX-> 180 and create it. Click on Choose DataStream
and select Gauge (V0) and Save it.

Electronics & Telecommunication Engg Dept DKTES’ TEI, Ichalkaranji


SY B Tech 01ETMDP2204 MDM (ETC): Introduction to IoT
6. Click on Save button. Lab

7. Click on Developer Zone-> Home button and copy Template ID and Template Name.

8. Click on Device and copy TOKEN.

9. Copy this TOKEN and paste on Arduino IDE software.

Electronics & Telecommunication Engg Dept DKTES’ TEI, Ichalkaranji


SY B Tech 01ETMDP2204 MDM (ETC): Introduction to IoT
Lab

Code

#define BLYNK_PRINT Serial


#define BLYNK_TEMPLATE_ID "TMPL3B2Kct2cA"
#define BLYNK_TEMPLATE_NAME "water level"
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define sensorPin A0
#define relayPin D2
BlynkTimer timer;

void setup()
{
char auth[] = "BeLDqQd8g25lAkePa7VylJYO-ycOyzGY";
char ssid[] = "***********";
char pass[] = "**********";
pinMode(sensorPin,INPUT);
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
int waterLevel = analogRead(sensorPin);
int output_val=map(waterLevel,0,1023,0,100);
Serial.print("Water Level:");
Serial.println(output_val);
Blynk.virtualWrite(V0, waterLevel);

Electronics & Telecommunication Engg Dept DKTES’ TEI, Ichalkaranji


SY B Tech 01ETMDP2204 MDM (ETC): Introduction to IoT
delay(500); Lab
}

Results:

Output of Relay Output of LED


Serial Monitor (Arduino )
Web Browser

Conclusion:

The real-time water level monitoring system using NodeMCU and the Blynk IoT platform. The
setup enabled wireless data transmission and user-friendly, making it an efficient and scalable solution
for smart water management.

Electronics & Telecommunication Engg Dept DKTES’ TEI, Ichalkaranji

You might also like