As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
DURING CLIMB THE RED GEAR UNSAFE LIGHT REMAINED ILLUMINATED AFTER GEAR RETRACTION. EMERGENCY DECLARED. LANDING UNEVENTFUL. AIRCRAFT GROUNDED. MAINTENANCE ADJUSTED THE RIGHT MAIN LANDING GEAR PROXIMITY SENSOR IAW AMM 32-60-05. OPS CHECKED NORMAL.