How do i turn multiple usb ports off based on multiple sensors
I would recommend using a GPIO expander for this. I have used the Microchip MCP23017 in the past for this very setup. This device is a 16 channel programmable GPIO available in either SPI, or I2C (the part number is slightly different for SPI).



You can connect the gpio outputs from this device to N-Channel mosfets with a pull-down resistor to achieve your goal. The best thing about this part is that it is available in a dip package for cheap ($1.44) at DigiKey.