const int relayPin=8;
const int ledPin=6;
void setup() {
pinMode(relayPin, OUTPUT);
pinMode(ledPin, OUTPUT);
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(relayPin, HIGH);
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(relayPin,LOW);
digitalWrite(ledPin,LOW);
delay(1000);
}