Is it illegal to leave your dog in a parked car? The answer to this question, of course, depends on in the state in which you live. Actually, only 16 states (AZ, CA, IL, ME, MD, MN, NC, NV, NH, NJ, NY, ND, RI, SD, VT, and WV) have statutes that specifically prohibit leaving an animal in confined vehicle. The next factor important to the question is the condition under which the the animal is left in the vehicle. Most of these laws provide that the animal must be confined or unattended in a parked or stationary vehicle. Further, the laws add that in order for a person to violate the law, the conditions have to endanger the animal's life. Some of the statutes specifically state that extreme hot or cold temperatures, lack of adequate ventilation, or failing to provide proper food or drink meet this definition. Other laws are more vague and just require that the conditions are such that physical injury or death is likely to result.
detail below FYI~
https://www.animallaw.info/topic/table-state-laws-protect-animals-left-parked-vehicles