A tragic event triggered the idea for a new invention that could help farmers track wandering livestock.