void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(18,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int state=digitalRead(18);
if(state==1){
Serial.println("LED ON");
}
if(state==0){
Serial.println("LED OFF");
}
delay(10); // this speeds up the simulation
}