NODMCU sketch problem

I apologize for posting the photos.
Very well, the board is HL-52S
Powered by 5 volts.
As a sketch, I notice that it works just fine!
Do I need to conclude anything else?

int Relay1Pin =4;
int Relay2Pin =14; // push button is connected
const int button = 0;
int temp = 0;    // temporary variable for reading the button pin status

void setup() {
  Serial.begin(9600);
  pinMode(Relay1Pin,OUTPUT);
  pinMode(Relay2Pin,OUTPUT);
  pinMode(button, INPUT);
  digitalWrite(Relay1Pin, HIGH);
  digitalWrite(Relay2Pin, HIGH);
}

void loop() {
  temp = digitalRead(button);
     
     if (temp == LOW) {
        Serial.println("Relay1Pin ON");
        digitalWrite(Relay1Pin, LOW);
        delay(10000);
        digitalWrite(Relay1Pin, HIGH);
        Serial.println("Relay1Pin OFF");
     if (digitalRead(Relay1Pin) == HIGH);
        Serial.println("Relay2Pin ON");
       digitalWrite(Relay2Pin,LOW);
       delay(30000);
       digitalWrite(Relay2Pin, HIGH);
       Serial.println("Relay2Pin OFF");}}