Weather station logging to SD problems (sparkfun)

Hi there community. I am building a weather station and I cannot get the data to log to the SD card. The content is written to the card except all the readings show 0 (zero), except for the voltage and time/date (please see attached screenshot). The current build is taking 84% of dynamic memory so I not sure if this may cause the problem. I removed the serial information as I don't need to display the information, I only need it to log the data to an SD card.

Im using the following components if it may help: Arduino Uno, Sparkfun weather shield, weather station, SD card shield v3, RTC DS1307, Sparkfun solar lipo charger.

I tested the serial data and everything seems fine except for the temperature that is giving a large negative amount of -999. Have checked everything over and over and think I am missing something basic.

Your help is truly appreciated.

weather_test_2.ino (13.6 KB)

I gave up on trying to read your code. All the commented out code is NOT part of the problem. So, don't post it. DELETE THE COMMENTED OUT CODE.

Try making your arrays smaller. Try getting rid of some of them.

You do NOT need to store 120 values of wind speed to calculate a 2 minute average. The value that you calculate as the average is wrong. You add up 120 values, and then divide by 119. Why?