ESP32 GPIOs that can’t be used:

PINS that can be used:

Category Pins Notes
SPI 23 (MOSI), 19 (MISO), 18 (CLK), 5 (SS) SPI
UART 1, 3 Default UART TX/RX
Fully Usable 4, 5*, 12, 13, 14, 16, 17, 21, 22, 25, 26, 27, 32, 33 Pin 5 is already SPI SS, so might be in use