Changed from original to address digitalRead compiler error and change behaviour to value is passed back through return value rather than pin input variable.
Changed from original to address digitalRead compiler error and change behaviour to value is passed back through return value rather than pin input variable.