How the sizes of proximity switches are selected?

The sizes of proximity switches are selected based on sensing distance and mounting requirements.