Sensor for measuring frequency

So, is it allowed to attach anything to the pipe? E.g tiny magnets or mirrors...