Section 81. Railroad corporations shall not permit animals carried or transported by them to be confined in cars longer than twenty-eight consecutive hours without unloading them for at least five consecutive hours for rest, water and feeding, unless prevented by storm or accident. In estimating such confinement, the time during which the animals have been confined without such rest on connecting roads from which they are received shall be included. Animals so unloaded shall during such rest be properly fed, watered and sheltered by the owner or person having the custody of them, or, in case of his default, by the railroad corporation transporting them, at the expense of said owner or person in custody thereof. In such case the corporation shall have a lien upon such animals for food, care and custody furnished, and shall not be liable for such detention. A corporation, owner or custodian of such animals failing to comply with this section shall be punished by a fine of not less than one hundred nor more than five hundred dollars. This section shall not apply to animals carried in cars in which they can and do have proper food, water, space and opportunity for rest.