int S1_status;
void setup() {
Serial.begin(115200);
pinMode(16, INPUT_PULLUP);
}
void loop() {
long T1=millis();
S1_status=digitalRead(16);
long T1_exe=millis()-T1;
Serial.print("T1exe = ");
Serial.println(T1_exe);
delay(500); // this speeds up the simulation
}