Ultra sonic sensor not working

So I’m been trying to program a ultrasonic sensor and it’s not getting me the range it says ping port 12 out of range and my output is on 12 and try using wire extension and with out and nothing it keeps saying it. I’m using easy c v5. If anyone can help me that would awesome.