MOSFET N-Channel 2N7000 as a switch
Warning: MOSFET are ESD sensitive - be careful.
Source (1) connected to ground.
Gate (2) to signal, plus 10K resistor pull-down to ground.
Drain (3) to ground of device switched on/off.
Note: Pull-down 10K works for 2N7000, may need to be different for other cases.
Datasheets: