Constrain() ultrasonic inputs to control LED

That was what I tried but I keep on getting 0 readings.