GREENFIELD, Ind. — Detectives are trying to determine how a man and dog died after their bodies were found in a Chevy pickup truck outside a PetSmart in Greenfield on Tuesday.

According to the Greenfield Police Department, the bodies were discovered at 12:45 p.m. in the parking lot near the front of the business on Barrett Drive. On Tuesday detectives stated they weren’t sure what led to the man and the dog’s death but believed the bodies had been in the pickup for at least a few days.

Authorities said officers were called to the scene after a person walked by the white 2006 Chevrolet Silverado and noticed the man inside. Police said it was “obvious” to officers that the man and dog inside were dead and had possibly been dead for a few days.

Police identified the man on Wednesday as 81-year-old John D. Lime, a resident of Rush County. Police said after speaking with family and learning of his health history that authorities believe Lime died as a result of a medical emergency suffered while in the parking lot.

“Our thoughts and prayers are with the family and friends of Mr. Lime during this difficult time,” the Greenfield Police Department said.

The Greenfield police said on Tuesday that they did not believe foul play is involved in the deaths and believed there was no threat to the public.