baldacchino:
All I am after is a Boolean on and off, I dont need values.
As someone here (don't remember who) pointed out, you're not going to be able to get a Digital result, using that Voltage Sensor [voltage divider], so you'll need to do an Analog read and then test for a threshold value.
Or, dispense with the Voltage Sensor, and try the Zener Diode technique [if so, then yup, you'll need that Zener -- and it doesn't have to be exactly that zener -- but, probably if you don't know how to select a zener
] -- BUT, to do that as a Digital Input, the Phototransistor will need to non-conduct enough to cause the "Out" voltage to drop to a defined LOW. In other words, the Photo Transistor will need to "turn off' enough for the "Out" voltage to "go low". If there is too much ambient light [when laser is NOT shining on the Phototransistor], then this may not work, or you may need to do some adjustments in the value of that resistor (that is now set to 2k2) -- a trimmer resistor (or other type of variable resistor), is a handy thing for doing this. But, ALSO, if the "No Laser Shining on the Phototransistor" state is inconsistent, then that's a whole other world of hurt! But, the 2k2 resistor will probably be presenting a low enough impedance path that the Phototransistor will behave as "off" even with some ambient light. Hopefully this is the case. BUT, it would seem to me that the difference between a Laser shining on that phototransistor and it NOT shining would be HUGE to the transistor, so a clear transition should be imminent -- unless the response frequency of the transistor [typically in the Infrared] is a factor -- what color is this laser, anyway -- perhaps what you need to do is re-think your sensor. Like, maybe a solar cell, or a photoresistor, etc.
baldacchino:
Without waiting for these 2k resistors to arrive. Is there any other way I could get this working?
Do you have any resistors? The 2k2 value is not set in stone -- there is some wiggle room -- and in fact, it's not even a certainty that is the correct value. In fact, even better might be a 1k or even 750 ohm value, or something in that ballpark. There isn't enough information at my end to completely pin that down, and it will, likely require a bit of experimentation.