"Then when the beam is broken, the IR module output goes HI, and activates the relay until the beam is re-established. I hope all this wasn't too obvious,"
It's not "too" obvious. It's very common for a seasoned design EE to build a circuit like that and when it's working say "Oh...I need to change it so the relay is off...". ��