Pig tracking tool inside a pipe