Once you have the basic setup working, I suggest you drive the LED from just the PWM pin (ground the cathode), by controlling the output of the pin as per your data requirement; you will find a significant improvement in range.

Regards,

Anand