This sensor is essentially a reed switch, encased in an ABS plastic shell. Normally the reed is 'open' (no connection between the two wires). The other half is a magnet. They're often used to detect when a door or drawer is open, which is why they have mounting tabs and screws.
Questo sensore interruttore porta AT1315 viene spesso utilizzato per rilevare quando una porta o un cassetto è aperto, ha linguette di montaggio e fori per le viti sulla parete della porta. Sono disponibili sia il modello di lavoro NO che le opzioni NC.