void setup() {
// put your setup code here, to run once:
pinMode(11, INPUT);
Serial.begin(12500);
}
void loop() {
// put your main code here, to run repeatedly:
int a= digitalRead(11);
Serial.println(a);
if(a==1){
digitalWrite(11, HIGH);
}
else{
digitalWrite(11, LOW);
}
}