Using this function, we can Set the 3 pins to which IR Sensors are connected for Line Following for left, middle, and right sensing respectively.
setirsensor(“D1”,“D2”,“D3”)
Note: For 3 IR Sensors, the threshold is set by the potentiometers on the sensors as they work with digital value.