Solenoid switched by optocoupler?

Parts arrived, ir working as it should, although I don't think its waiting for the second drop, going on the first break of the beam (using my finger) don't think that will be a problem.
Light sensor? Seems to be working once like the sound but its not triggering the shutter, will put a small delay in the program between shutter high and low to see if the signal is too small/short. Will have to wait until tomorrow now .
Looking forward to finishing and using it properly, with the lid on!

Simon