Infrared covers three distinct jobs: decoding remote-control codes, detecting object presence with a beam-break or photoelectric switch, and reading non-contact temperature. The parts are not interchangeable across jobs.
TSOP38238 and TSMP96000 for remote-control receive and learn, Adafruit STEMMA IR transceiver for send/receive, IR break-beam and photoelectric switches for presence, and Grove/M5Stack MLX90614 modules for contactless temperature.