Multiplexing potentiometers

What's with folks using obsolete parts? This chip CD4051BCN is not available at digikey or mouser.

Try a currently available part - 10-bit, 8-channel ADC

Do 3 SPI.transfer( )s to select the channel and read the data back.
Easy to write a for:loop to do that.
Set up SPI divisor of 4 for 2 MHz operation.