How to wire up magnetic door sensor?

Hi I have this sensor;

i don't have a clue how to wire it up!

there is no diagram available from where i bought it.

if anyone could help that would be great!

thanks

Oli

That looks like a simple reed switch. Put an ohmmeter across the wires from the switch, the meter should read open. Bring the magnet close and the switch should conduct, meter reads low ohms value. You would wire it like any standard momentary switch.