const byte relayPin = 7;
const byte onBoardLEDPin = 13;
void setup() {
Serial.begin(115200);
Serial.println("setup-Start");
pinMode(relayPin, OUTPUT);
pinMode(onBoardLEDPin, OUTPUT);
}
void loop() {
Serial.println("Top of Loop");
digitalWrite(relayPin, HIGH); // Turn on the relay
digitalWrite(onBoardLEDPin, HIGH); // Turn on the relay
Serial.println("relay and onboard LED HIGH");
delay(2000); // Wait for 2 seconds
digitalWrite(relayPin, LOW); // Turn off the relay
digitalWrite(onBoardLEDPin, LOW); // Turn on the relay
Serial.println("relay and onboard LED LOW");
delay(2000); // Wait for 2 seconds
}