Ultrasonic Interval/Range

how to code ultrasonic with a distance less than 14 but greater than 10?

if(ultraSonic <= 14  && ultraSonic >=10) { ... }

is this how you are supposed to do it?
Screenshot 2023-03-11 at 7.43.20 PM

no. that's not a valid statement

if (10 <= distance && distance <= 14)

Screenshot 2023-03-11 at 7.55.01 PM
is this normal? or something is wrong with my sensor or code?

Normal if every other call to pulseIn() is timing out. Strange that the timeout seems to happen in about 0.780 seconds when the default timeout value is 1 second.

I bet it's the code you hae not posted.