Obstacle avoidance sensor module KY-032 for Arduino:
With 4 pins, use an infrared beam to detect proximity of obstacles.
The potentiometers can be used to adjust sensitivity.
Pin 1 is Ground, pin 2 is 5V power, pin 3 is digital output (on/off depending on the beam), 4 is enabling.