#include<SoftwareSerial.h>
int SW=4;
int LED=13;
int STATE;
void setup() {
// put your setup code here, to run once:
pinMode(4,INPUT);
pinMode(13,OUTPUT);
}
void loop()
{
// put your main code here, to run repeatedly:
STATE=digitalRead(4);
if(STATE==HIGH)
{
digitalWrite(13,HIGH);
}
else
{
digitalWrite(13,LOW);
}
}