#define BLYNK_TEMPLATE_ID "TMPL6Jbwbm0uc"
#define BLYNK_TEMPLATE_NAME "uwaw"
#define BLYNK_AUTH_TOKEN "87Y9krgYq0KE9J1tkyVp40abBTZ6xF4T"
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
//*****ULTRASONIK, menamai pin yang digunakan****************
#define lamp 32
BLYNK_WRITE(V1)
{
int saklar = param.asInt();
digitalWrite(lamp, saklar);
}
void setup() {
pinMode(lamp, OUTPUT);
//********BLYNK, mulai koneksi ke blynk***********************
Blynk.begin(auth, ssid, pass);
}
void loop() {
//********BLYNK, menjalankan blynk****************************
Blynk.run();
}