I Need some help.can anyone solve this probleme please.
ESP32 w-room (Devkit V1), I want to commande a relay manually and with app by using two pins in & out and commande in the same time to tis pin out with BLYNK APP.
the probleme here when i upload the code everythig fine except the air commande not working.
( commande manually working, with app not!)
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = "***************************";
const int PushButton = 13;
const int relay = 19;
char ssid[] = "******";
char pass[] = "*********";
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
pinMode(relay, OUTPUT);
pinMode(PushButton, INPUT);
}
void loop()
{
Blynk.run();
int Push_button_state = digitalRead(PushButton);
if ( Push_button_state == HIGH )
{
digitalWrite(relay, HIGH);
}
else
{
digitalWrite(relay, LOW);
}
}```