This module uses a pair of infrared emitters and receivers to detect obstacles nearby. The infrared beam reflects on obstacles and illuminates the receiver. There is a small potentiometer on board to adjust the module’s sensitivity. It’s range can be adjusted from 2cm to 30 (depending on the reflectiveness of the obstacles), you can feed him 3-5V and the output pin will trigger when it will detect obstacles.