What year is the car make and modle?
I myself ran into the same problem a few years ago.
My alarm was always going off after i locked the car.
Tured out that my swich the one that is mounted on the door itself had rust build up and had to be sanded down and hit with some WD40.
Never gave me problems after that.
You might want to look into that first.
could be an eazy fix