Infrared Wireless Data Transfer

How does that code, which uses the HardwareSerial class, and the hardware serial pins, relate to your problem?