ENVshield SD card storage issue

Edited the post, thank you! I will take a deeper look into that snippet and play around with it. My goal is to have it read out to the IoT cloud dashboard as well as capture the data there. I am automating an heirloom tomato bed. Next would be to measure soil PH levels and capture that data as well. Thank you!