#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
WidgetLCD lcd(V1);
char auth[] = “9e89ee9aec254e13b96a0213289d”;
char ssid[] = “Bloodborn”;
char pass[] = “born2911998”;
int count = 0;
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(2, INPUT/_PULLUP/);
}
void loop()
{
Blynk.run();
float pH_f = 7.6, temp_f = 32.06;
lcd.clear();
lcd.print(3, 0, "ph = ");
lcd.print(8, 0, pH_f);
lcd.print(2, 1, "temp = “);
lcd.print(9, 1, temp_f);
String vij = “this is new”;
if (digitalRead(2) == HIGH)
{
Blynk.email("vmourya716@gmail.com”, “Subject: Button Logger”, vij);
count++;
delay(5000);
}
}