Im working on a project ( Project Dust ) that samples with one sensor and posts to the web. It works great. All the code is container in one .ino file.
I have another project ( Project CO2 )for a second sensor that also samples using a different sensor also on a Grove Shield.
Id like to incorporate the .ino file from my Project CO2, into my Project Dust such that both Dust and CO2 are reported to the web server.
What is the proper way to import that other .ino file in order to be able to just call the methods for Project CO2 and have them run in Project Dust?
What is the proper way to import that other .ino file
You can't.
If you put both ino files into the same directory, both will be loaded when the IDE starts, and will be combined into one cpp file to be passed to the compiler. Of course, two setup()s and two loop()s will cause the linker fits.
There is a much easier way, on the top right corner, this is a down arrow under the search icon. Click that, select new tab, give it a name, and add some code. Very good/easy way to separate out your code.