The tsop1738 is obsolete. datasheet here:
https://drive.google.com/file/d/17quZDUJlujMtpBa-bwOdghsv7O8pEucu/view
R5 in the circuit diagram of 47 ohms might confuse someone. It's basically a fuse. There is an 80K built in pull-up in the receiver.
The pull-up depends on what logic your interfacing too or can interface to. 80K use in the 1738 is a weak pull up. Sometimes power consumption matters. The weak pull up does provide a path for leakage current.
There's a nice blurb on Vishay concerning these devices, You have a frequency of operatio, Electronically, it's important, but a 30 kHz receiver will see a 30 kHz signal. The harmonic gets through,
The lens is important. It blocks the non-IR light,
Sunlight contains IR and so do CFL bulbs. Sunlight won;t be fount at 38 kHz and hopefully the designer of your CFL light didn't choose that frequency.
The next problem is rejection of non-carrier frequencies.
The final problem which NEC nailed really good was AGC or automatic gain control. What did NEC do? They transmit known garbage which allows the reciever to adjust it;s gain. That first frame isn't important as far as data is concerned. It's a start preamble.
It would be really hard to design a receiver from scratch. Especially one that rejects sunlight and CFL light.