Door and window sensors are primarily designed to detect any opening or closing of doors and windows, regardless of the force used. However, some advanced sensors may have features to distinguish between normal activity (such as opening a door using a key) and forced entry, providing an extra layer of security and reducing false alarms.