Door and window (opening sensors) are preventive in nature as they send an alarm while the intruder or burglar is still outside