MKR 1010 Wifi Transistor 3V+ 5V

We’ll pin 13 is only going to the switch not the transistor.

Change that to pinMode(c_inPuls,INPUT_PULLUP);
Remove Pin 13 from your breadboard and your code.