You are on page 1of 2

//char ssid[] = "IITA-Guest" ;

//char pass[] = "K@lambo2023" ;/*New Blynk app with Home Automation


//Home Page

//Include the library files


#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
//Define the relay pins
#define BLYNK_AUTH_TOKEN "Z-vZVfj3wYocj6EhzaAGzVeMS-b6Ry60"//Enter your blynk auth
token
#define LOW_ALARM 20
#define HIGH_ALARM 25
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "IITA-Guest";//Enter your WIFI name
char pass[] = "K@lambo2023";//Enter your WIFI password
BLYNK_WRITE(V0) {
int value2 = param.asInt();
// Check these values and turn the relay2 ON and OFF
if (value2 == 1) {
digitalWrite(5,HIGH);
} else {
digitalWrite(5,LOW);
}
}
void setup() {
Serial.begin(9600);
delay(100);
pinMode(5,OUTPUT);
digitalWrite(5,LOW);
lcd.init();
lcd.backlight();
lcd.setCursor(3,0);
lcd.print("YETUU FISH");
lcd.setCursor(3,1);
lcd.print("ECLOSERIE");
delay(5000);
lcd.clear();

//Initialize the Blynk library


Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
}

void loop() {
//Run the Blynk library

Blynk.run();
display();
}

void display()
{
lcd.setCursor(1,0);
lcd.print("T:");
lcd.setCursor(7,0);
lcd.print("PH:");
lcd.setCursor(1,1);
lcd.print("OX:");
lcd.setCursor(3,8);
lcd.print("LW:");

You might also like