Safer security system alarm circuit electronic.
It”s a somewhat unusual application of a National Semiconductor LM3915 IC, normally used to drive LED” bargraph displays. That chip happens to contain the right combination of comparators and logic circuits to do what you need.