As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
DFW - AFTER TAKEOFF AND GEAR UP SELECTION RIGHT GEAR UP AND UNSAFE RED LIGHT ILLUMINATED. LIGHT EXTINGUISHED AFTER APPROXIMATELY 20 MINUTES AND DISPLAYED INTERMITTENTLY. RETURNED TO DFW AND LANDED WITHOUT INCIDENT. REPLACED RIGHT MAIN UP AND LOCKED SENSOR. SYSTEM GROUND CHECKED NORMAL OPERATION.