unstable inputs

With long runs of unshielded wire inputs, you will continue to have problems.

They will just become less frequent with external pullup resistors.