Infrared Sensor:
An infrared sensor measures the IR light that is transmitted in the environment to find objects by an IR LED. This type of sensor is very popular in navigation for object avoidance, distance measured or line following applications. This sensor is very sensitive to IR light and sunlight. This is the main reason that an IR sensor is used with great precision in spaces with low light.
Advantages of Infrared Sensor:
1. Infrared sensors can detect infrared light over a large area.
2. They can operate in real-time.
3. The IR sensor uses non-visible light for detection
4. They are cheap sensors.
Disadvantages of Infrared Sensor:
1. This sensor is very sensitive to IR lights and sunlight.
2. It has a weakness to darker colors such as black.