void setup() {
// put your setup code here, to run once:
pinMode(13,OUTPUT );
pinMode(3, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int x=digitalRead(3);
if(x==HIGH)
{
digitalWrite(13,HIGH);
}
else
{
digitalWrite(13,LOW);
}
delay(1000);
}