Automatic Detection and Diagnosis of faults in Sensors used in EMS