Sensor Readings not working in full code but works in individual function

Ok, I will definitely do that! I'm unsure what that means or does but as long as the end goal is the same I'm on board!

Quick edit on memory: I'm using an Arduino Yun, and when I upload the code I am below 50% of memory usage if that makes a difference or not to what you suggest I do not know.