void setup() {
Serial.begin(9600);
pinMode(25,INPUT_PULLUP);
pinMode(26,INPUT_PULLUP);
pinMode(18, OUTPUT);
pinMode(19, OUTPUT);
}
void loop() {
int x = digitalRead(25);
int y = digitalRead(26);
if( x==0 )
{
digitalWrite(18, HIGH);
Serial.println(" Switch ON || Led ON ");
}
else if (y == 0)
{
digitalWrite(19, HIGH);
Serial.println(" Switch ON || Led ON ");
}
else
{
digitalWrite(18, LOW);
Serial.println(" Switch1 off || Led1 off ");
digitalWrite(19, LOW);
Serial.println(" Switch2 off || Led2 off ");
}
}