srf04 programming C .. help !

I have a problem with srf04 ( ultrasonic range finder ) programming

I want to make it detects just for 145 cm away from it

how to write the code ?

by the way I use pic16f876