What do you mean by a 2 way switch? Are you talking about a switch that is paired with another switch that controls the light/fan from 2 different locations? These switches are usually called (3 way switches) (although that never made a lot of sense to me either).
You need a 3 way motion sensor switch. remove the existing switch you want ot replace and install the new switch.
Coastal South Carolina