Uno not recognizing SD card


I am trying to set up a data logging system and I want to use an Arduino Uno to write to an SD card but I cannot get the SD card to initialize correctly. I attached a wiring diagram and code that I am trying to use.
When I run the code I get “Card Failed, or not present” in the Serial Monitor.

Thanks for the help, let me know what I forgot to mention.


Test_Code_SD_Card.ino (1.48 KB)

Uno SD Diagram.pdf (1.37 MB)

Have you formatted the card in the proper manner? If not, see the sticky in the storage section.

Yes, the card is formatted to FAT 32.