HOUSTON (AP) — A newborn girl was saved after a passer-by found her abandoned, crying and covered in ants and other debris in a flower bed at a suburban Houston apartment complex.

Harris County Sheriff’s Deputy Thomas Gilliland said only the alertness of the complex resident who found the baby before dawn Thursday saved her from dying. Investigators said the girl was less than an hour old.

They followed a trail of blood to an apartment where a 21-year-old woman admitted she was the mother.

The woman was detained for psychological and medical evaluation, but no charges were filed.

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)