I'm connecting a fan and board but I can't connect the fan to the board so I wanted to use an electronic switch to control the connection so when I send a signal from the board using a pin the fan turns on, but I don't know what type of switch to use.
For more info I'm using the MKR WIFI 1010 Arduino board
Welcome! Sorry there is not enough information to begin to answer your question. I 'm connecting a fan (sorry I cannot see the fan so I do not have a clue as to what it is). The board, (I have hundreds in my lab which one is this)? I can't connect the fan to the board so I wanted to use an electronic switch (what switch, what voltage, etc)? To control the connection (How is this supposed to happen?) When I send a signal from the board the fan turns on, but I don't know what type of switch to use, neither do we. Volts, Links to technical information, a preliminary electronic draw showing how this goes together for starters would help.
If you plan on using PWM to control the fan be sure to get a solid state relay, a mechanical relay module will not work. Also be sure the solid state relay will work with DC, there are many AC only ones out there.