Trying to read analog signal with digital pin using outside ADC
The MCP3008 is an SPI device. You connect it to the SPI pins of your Arduino. Then you can read 8 analog channels through it.

It requires 4 pins: MISO, MOSI, SCK and a chip select pin.