We are having issues with our intake beam brake and we havent been able to fix them. It worked yesterday, but currently it doesnt detect when the not enters the intake. It is always on (giving true values), even when we pass the note or any other object between them. The only scenarios where it works is when we explicitly completely cover the receiving end of the beam brake.
We tried removing them from our intake and placing them almost next to each other, bht when passing the note it also doesnt tected the note or the beam braking. We couls even place the beam brake (either one), to completely different places, and it would still give a positive value.
It isnt the inversion in code, as it never changes value when we place them in front of each other
We have used ones like these often, sometimes you need to sharpie the area around the receiver black to make them be consistent among different lighting conditions.
It seems reasonable that it should work in this ambient lighting.
You said the sensor always reads high? That could just be the pullup resistor, your sensor (reciever side) might be dead or a wire disconnected. If it’s working it is supposed to sink the logic signal to “low” when it receives IR input from the transmitter.
Those are 3mm lenses so if I remember correctly they are only rated for a 12ish inch gap between and otherwise they won’t detect probably what’s happening with your intake. you can buy the same kind with bigger lenses to go across a bigger gap i.e. same sensor but 5mm lenses version. We had the same thing happen with our cube shooter last season and this fixed it.