modification of code base to pass sensors around