How Can I Sense a Nearby Dark Object and Ignore More Highly Reflective Objects Further Away?
A diode is a component that restricts the directional flow of charge carriers. Also a diode allows an electric current to flow in one direction, but blocks it in the opposite direction