As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
DFW - CREW REPORTED MAIN LANDING GEAR DOOR OPEN LIGHT REMAINED ON AFTER GEAR RETRACTION. EMERGENCY DECLARED FLIGHT LANDED DFW WITHOUT INCIDENT. AIRCRAFT REMOVED FROM SERVICE. REPLACED MAIN LANDING GEAR DOOR POSITION SENSOR. SYSTEM GROUND CHECK NORMAL OPERATION.