Code to gather and process environmental data to make it ready for analysis