(b) No person shall leave a dog or other animal in any unattended motor vehicle without adequate ventilation, sanitary conditions, or in such a manner as to subject the animal to extreme temperatures which adversely affect the animal's health or safety.