I'm rewiring my security system, which was last done in 1991. I came across the pictured device and have no idea what it is. It looks like a fire sprinkler, but it's in my attic and isn't connected to any pipes, nor does it look like it could be connected to a pipe. The wiring is a rat's nest, so it's impossible for me to really tell where it connects to the panel, but they would a bunch of the separate sensors all together, including this one, so I have no idea what's going on with it.
Any idea what it is?
First picture is one in my attic. Second picture is one in my garage.

Any idea what it is?
First picture is one in my attic. Second picture is one in my garage.

