Okay then, a simple IR LED and phototransistor will work then, driving either a relay or a more powerful transistor.
However, ambient light is still a consideration. You may need to put the detector insude a tube looking directly toward the LED, shielding it from extraneous light.
Bob