compiling sequence trouble shooting of existing program with multiple sensors

Please post a link to the place where you got the code you are trying to use.

Are you using the exact same hardware that the code was written for?

...R