What is this

I’m thinking carbon monoxide detector but was not positive. There was one in the hall and in the master bedroom. This is a condo and there on the ceiling if that matters

Looks like a building alarm in case of fire to me


I do believe it is an alarm as well

Now that would make sense to me also.