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: AFTER RAISING THE GEAR HANDLE, RIGHT MAIN GEAR LIGHT STAYED RED. AIRCRAFT AIR INTERRUPTED BACK TO AND LANDED SAFELY AT MIA. PERFORMED TASK FOR RIGHT MAIN GEAR UPLOCK SENSOR FAULT, PER FIM 32-61-00. NO FAULTS NOTED. OPERATIONAL TEST WITH AIRCRAFT ON JACKS COULD NOT DUPLICATE AFTER MULTIPLE GEAR SWINGS. NO HISTORY.