Combining Two codes into one (Micro SD shield and Gas sensor)

Hey,
programming is doing... so try it yourself and if you hit a (specific) problem, ask it on the forum.
If you give more information about the hardware you are using, I can help you get started!