// Relay Control
const int relayPin = 2; // Digital output pin 2
void setup() {
pinMode(relayPin, OUTPUT); // Set relay pin as output
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn on the relay
delay(2000); // Wait for 2 seconds
digitalWrite(relayPin, LOW); // Turn off the relay
delay(2000); // Wait for 2 seconds
}