As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
ON CLIMBOUT FROM DTW RECEIVED FLAPS INDICATION THAT THE FLAPS WERE MOVING TO 20 DEG. AFTER FLAP INDICATION CLEARED RECEIVED FLAPS DEGRADED MSG. EMERGENCY DECLARED, A/C RETURNED TO DTW LANDED SAFELY. REMOVED AND REPLACED LT FLAP POSITION TRANSMITTER. OPS TEST GOOD.