SPI devices get tricky quickly, you need five pins: power, ground, microcontroller to sensor data (MOSI), sensor to microcontroller data (MISO), and a chip select line. While multiple devices on a set of SPI pins can share MISO and MOSI pins, they each need their own chip select pin, so the microcontroller can signal the device it wishes to communicate with.