Using values from a proximity senor in an IF statement!

i think you’re looking for this