IR (Infrared Sensor) is an electronic instrument that is used to detect any type of obstacle/object & it is also used to detecting the black & white colour. In this example I am showing how to use IR Sensor with Arduino
For more information you can vist my youTube channel https://youtu.be/tUTr58fq308