Reverse engineer a TSOP 1730 IR Receiver Module?
You have the opto-isolator wired up so that it expects the receive module to source current.
The module only has a very weak pull-up so can only source a few hundred microamps, that isn't enough to drive the opto-isolator.
You should wire the data line to pin 2 of the opto-isolator and pin 1 to a resistor to 3.3v. This way the module drives the opto-isolator when its output goes low.
The module can only guarantee to drive 5mA so 200 ohms is too low as well. something like 470 ohms would be better.
A level-shifter would be simpler than using an opto-isolator. Because the module only has a weak pull-up (33k on my datasheet) This could be as simple as a 1k resistor to 3.3v.
Pin 2 on the module just provides it with power. If it went to to the MCU on another design that may have been just to be able to control the power to the module when not needed (or to reduce overall power consumption if run from batteries).