const int relayPin = 22; // Define the GPIO pin connected to the relay control input
void setup() {
pinMode(relayPin, OUTPUT);
}
void loop() {
// Turn on the relay and the LED
digitalWrite(relayPin, HIGH);
delay(1000); // Wait for 1 second
// Turn off the relay and the LED
digitalWrite(relayPin, LOW);
delay(1000); // Wait for 1 second
}