need serial port and SPI port

The SPI code will be part of your Arduino sketch. Here's an example that reads the temperature from a DS1722 temperature sensor via SPI and writes the results to the serial port.

-j