Constrain() ultrasonic inputs to control LED

But how can they limit the values at that point, you have not received it yet?
Paul