The blue potentiometer on the FC-51 adjusts the reference voltage for the LM393 comparator. This directly changes the detection distance.

LOW logic level when an obstacle is detected

Based on your request, here is the technical information and specification summary for the .

void setup() pinMode(irSensorPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); Serial.println("FC-51 Obstacle Detector Ready");