/*
#define BLYNK_TEMPLATE_ID "TMPL6yFGJJsd-"
#define BLYNK_TEMPLATE_NAME "WOKWI"
#define BLYNK_AUTH_TOKEN "BuddL3jWEkytWyTDJvDBXh2ksTBTLylK"
*/
#define BLYNK_TEMPLATE_ID "TMPL6j0JHwXYe"
#define BLYNK_TEMPLATE_NAME "Potentiometer"
#define BLYNK_AUTH_TOKEN "mExX0IIHP1_2kWUJPhDJ8IhRzQ1NuVGh"
#define POT_PIN_PH 12 // Analog pin for the potentiometer on ESP32
#include <WiFi.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
void setup() {
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
}
void loop() {
Blynk.run();
int potValuePH = analogRead(POT_PIN_PH);
Serial.print("Potentiometer Value: ");
Serial.println(potValuePH);
Blynk.virtualWrite(V2, potValuePH); // Send potentiometer value to Blynk app (assuming you're using V0 widget)
}