How to attach the proximity switch base onto the switch

How to attach the proximity switch base onto the switch