Distinguishing sensor and system faults for diagnostics and monitoring