As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
AIRCRAFT WAS GROUNDED: AN EMERGENCY WAS DECLARED DUE TO: FLAPS NOT IN COMMANDED POSITION UNABLE TO EXTEND OR RETRACT AT FLAPS 25; AIRCRAFT LANDED SAFELY AT ORD. BITE OF FSEU SHOWS MAINT MSG 27-52260 TRAILING EDGE FLAP SENSOR RIGHT FAULT. RIGHT SENSOR READS 219.7 LEFT READS 210.7 AND NEEDLES IN COCKPIT ARE SPLIT. REMOVED AND REPLACED RIGHT POSITION SENSOR PER MM 27-58-01. GROUND CHECKS NORMAL FLAPS RUN PER MM.