Distance sensor repetition

So what should I do to correct it?