Water is leaking thru my smoke detector and water is pooled up around the bottom of the ac in the attic
Air conditioneres make water from atmospheric humidity

they all have a drain,  some have a pump  that feeds the drain.

It could be that the pump is broken or that the drain is blocked leaking, or disconnected.