use the circuit in this topic: https://www.electro-tech-online.com/threads/newcomer-to-pic.20030/ for detection, then hook up IR LED(s) to Microcontrollers PWM output(s) and blink them at 38kHz. That's about it. If your uC doesn't have PWM, use a 555 timer or whatever you can think of