int Relay =4;
void setup() {
Serial.begin(9600);
Serial.println("Hello, CHRIST");
pinMode(Relay, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(Relay, HIGH); // Turn On the LED
if(digitalRead(Relay)==1)
{ Serial.println("LED ON");}
delay(500); // this speeds up the simulation
digitalWrite(Relay, LOW); // Turn Off the LED
if(digitalRead(Relay)==0)
{ Serial.println("LED OFF");}
delay(500);
}