/*************************************************************
Bridge Health Monitoring System
Hardware : ESP32 + Analog Vibration Sensor
Platform : Blynk IoT
*************************************************************/
#define BLYNK_TEMPLATE_ID "YOUR_TEMPLATE_ID"
#define BLYNK_TEMPLATE_NAME "Bridge Monitoring"
#define BLYNK_AUTH_TOKEN "YOUR_AUTH_TOKEN"
#include <WiFi.h>
#include <BlynkSimpleEsp32.h>
// Wi-Fi Credentials
char ssid[] = "YOUR_WIFI_NAME";
char pass[] = "YOUR_WIFI_PASSWORD";
// Analog Vibration Sensor Pin
#define SENSOR_PIN 34
// Threshold Value
int threshold = 2000;
void setup()
{
Serial.begin(115200);
pinMode(SENSOR_PIN, INPUT);
// Connect to Blynk
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
Serial.println("------------------------------------");
Serial.println("Bridge Health Monitoring System");
Serial.println("ESP32 Connected Successfully");
Serial.println("------------------------------------");
}
void loop()
{
Blynk.run();
// Read Analog Sensor Value
int vibration = analogRead(SENSOR_PIN);
// Print on Serial Monitor
Serial.print("Vibration Value : ");
Serial.println(vibration);
// Send Sensor Value to Blynk
Blynk.virtualWrite(V0, vibration);
// Check Bridge Condition
if (vibration > threshold)
{
// LED ON
Blynk.virtualWrite(V1, 1);
// Display Bridge Status
Blynk.virtualWrite(V2, "High Vibration Detected");
Serial.println("Bridge Condition : HIGH VIBRATION");
}
else
{
// LED OFF
Blynk.virtualWrite(V1, 0);
// Display Bridge Status
Blynk.virtualWrite(V2, "Bridge Condition Normal");
Serial.println("Bridge Condition : NORMAL");
}
delay(500);
}
📘FOUNDATION SECTION
0/8
📘Programming Fundamentals for IoT
0/11
📘 MODULE 1 – IoT Based Weather Station
0/5
📘 MODULE 2 – Smart Plant Monitoring System
0/6
📘 MODULE 3 – IOT based Fire Alert System
0/5
📘 MODULE 4 – Bridge Health Monitoring System Vibration sensor
0/2
📘 MODULE 4 – Bridge Health Monitoring System
0/6
📘 MODULE 5 – Smart Parking System
0/6
📘 MODULE 6 – Smart Pet Feeder
0/6
📘 MODULE 7.2 – Smart Water Management System(Ultrasonic Sensor)
0/7
📘 MODULE 8 – Water Quality Monitoring System
0/7
📘 MODULE 9 – Smart Dustbin
0/6
📘 MODULE 10 – Gas Leakage Detection System
0/7
📘 MODULE 11 – Home Security System
0/7