Door sensor

Why does my door contact sensor keep killing the batteries?