Data Logging SD Card

Hi Guys, I need help.

I try to log data from temperature and pressure sensors to an SD card.
I use the Arduino Mega 2560 and a CANBUS Shield V2.0 by df-robot.com with integrated SD slot, for this project.
The temperature sensors are the MAX6675 with SPI communication and the pressure sensors are MPX5700AP with analog read.
If i look at the serial monitor without datalogging the values are fine.
But if i try to store the data on the SD card the temperature values are wrong on the serial monitor.
I think theres a problem with the SPI communication.?
Thanks for the answers.

Best regards Peter

Testversion.ino (3.85 KB)

I think theres a problem with the SPI communication.?

No, the problem is that you have the thermocouples on the SPI pins. On the Mega, the SPI pins are 50 to 53.