Home
About Us
Achievement
Home
Raspberry-Pi Projects
_Raspberry Pi 4 Complete Guide
Arduino Project
_All Projects
Esp8266 Project
_All Projects
Esp32 Project
_Automation-with-feedback
Automatic Water Level Controller With Message Alerts using GSM
Just Do Electronics
July 12, 2022
Block Diagram :-
Circuit Diagram :-
Video
GitHub :-
Code
Code :-
//Prateek //www.prateeks.in #include
#include
#include
#define rxPin 2 #define txPin 3 SoftwareSerial sim800(rxPin, txPin); LiquidCrystal lcd(12, 11, 10, 9, 8, 7); int FloatSensor = 14; int red = 6; int green = 4; int relay = 15; int buzzer = 5; int buttonState = 1; void setup() { Serial.begin(9600); sim800.begin(9600); sim800.println("AT"); pinMode(FloatSensor, INPUT_PULLUP); pinMode (red, OUTPUT); pinMode (relay, OUTPUT); pinMode (green, OUTPUT); pinMode (buzzer, OUTPUT); lcd.begin(16, 2); lcd.setCursor(0, 0); lcd.print(" Welcome To"); lcd.setCursor(0, 1); lcd.print(" Our Projects"); delay(3000); lcd.setCursor(0, 0); lcd.print("REPRESENTED BY:- "); lcd.setCursor(0, 1); lcd.print("JustDoElectronics"); delay(3000); lcd.clear(); } void loop() { buttonState = digitalRead(FloatSensor); if (buttonState == HIGH) { digitalWrite(red, LOW); digitalWrite(green, HIGH); digitalWrite(buzzer, LOW); digitalWrite(relay, LOW); Serial.println("WATER LEVEL - LOW"); lcd.setCursor(0, 0); lcd.print("W-Level:- Normal "); lcd.setCursor(0, 1); lcd.print(" Motor ON."); SendMessageTankNotFull(); } else { digitalWrite(red, HIGH); digitalWrite(green, LOW); digitalWrite(buzzer, HIGH); digitalWrite(relay, HIGH); Serial.println("WATER LEVEL - HIGH"); lcd.setCursor(0, 0); lcd.print("W-Level:- FULL.. "); lcd.setCursor(0, 1); lcd.print(" Motor OFF"); SendMessageTankFull();; } delay(1000); } void SendMessageTankFull() { sim800.println("AT+CMGF=1"); delay(1000); sim800.println((char)26); delay(100); sim800.println("AT+CMGS=\"+918830584864\"\r"); delay(1000); sim800.println("Water tank is full"); delay(1000); } void SendMessageTankNotFull() { sim800.println("AT+CMGF=1"); delay(1000); sim800.println((char)26); delay(100); sim800.println("AT+CMGS=\"+918830584864\"\r"); delay(1000); sim800.println("Monitoring started"); delay(1000); }
0 Comments
Newer
Older
Car Parking System Using Arduino
OTP Based Door Lock Using Arduino And SIM800L
IoT Based Fingerprint Biometric Attendance System Using NodeMCU (Esp8266)
RFID Based Automated Toll Collection System Using Arduino
Sign Language to Speech Conversion using Arduino With Flex Sensor
GSM + GPS Based Vehicle Location Tracking System
ESP32 And Fingerprint Sensor Based Biometric Door Lock Security System
Ultrasonic Sensor as a Counter with Arduino
Build Your Own Gps Tracking System using Arduino
IoT Based Patient Health Monitoring System Using Blynk App
YouTube
Like on Facebook
Follow on Twitter
Follow on Google+
Follow on Instagram
Subscribe on Youtube
Hi WelCome To My Website If you have a creative mind and want to learn Electronics even without studying it then FRIENDS this Website And Youtube Channel is for you, I am crazy creators who love making Electronics things. I have a bunch of more than 130 Tutorial Videos on My YouTube Channel and I upload a new Tutorial every Sunday.
Tags
Arduino Project
Esp32 Project
Esp8266 Project
0 Comments