I am currently in the process of building a line following robot. For this project, I am using an Arduino Nano with 5 Obstacle Avoidance Infrared Sensors. I noticed that due to working in different light and room conditions, I need to adjust the sensor’s sensitivity with every use.
My question is, are there any techniques I can use to stop the need for constant re-adjustment. I have the sensors and Arduino running off a separate power source which has helped greatly. Any other ideas would be greatly appreciated.