IR Sensor is a device that detects the object in front of it using IR or Infrared waves. It is also used to differentiate between black and white colors. Hence it is commonly used as the main sensor in a line follower robot. Hey guys! Today we are going to learn how to use or how to interface an IR sensor with Arduino. So here is your Beginners Guide To IR Sensor.