void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(32, INPUT);
pinMode(13, OUTPUT);
}int switchstatus;
void loop() {
switchstatus=digitalRead(32);
if (switchstatus==1)
digitalWrite(13, HIGH);
else
digitalWrite(13,LOW);
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}