added spi and thermocouple code