As reported to the FAA. Reports are unverified, and codes are left as the FAA publishes them.
What was found
DURING FLIGHT, AIRCRAFT DIVERTED DUE TO WEATHER. ON APPROACH THE FLAPS STUCK AT 2 WHEN FLAP LEVER MOVED TO 5. DECLARED EMERGENCY NO FLAP SPLIT NOTED. USED ALTERNATE FLAPS TO LOWER FLAPS TO 15 FOR LANDING. MAINTENANCE REMOVED AND REPLACED THE PROXIMITY SENSOR S995 IAW AMM 27-88-11. OPS CHECKED GOOD.