Constrain() ultrasonic inputs to control LED

Just tried it and it didn’t work. I get a constant output of:
1 in, 4cm
1 in, 4 cm
Even though I move the object’s distance from/to the sensor