As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
AIRCRAFT WAS GROUNDED: PILOT REPORTS ON APPROACH INTO BWI, CREW REPORTED A FLAP ISSUE. EMERGENCY WAS DECLARED. MAINTENANCE TROUBLESHOT PSEU AND FOUND RIGHT FLAP SENSOR FAULT. REPLACED RIGHT FLAP SENSOR IAW AMM 27-58-01-400-801. OPS CHECK GOOD.