Hi,
Welcome to the forum.
Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html
What are your input sensors, can you please post liks to data/spec please?
Try combining each of your codes as each a separate function to run in the void loop().
https://playground.arduino.cc/Code/Function
Tom... ![]()