Scientists repurpose stargazing tools to protect endangered species