A Roosevelt man got 30 days in jail after his pit bull mix was found with her ears raw, covered with flies and infected after they were cropped, the Nassau district attorney’s office said.

Tramel Dunston, 31, was sentenced Friday for failure to provide proper sustenance to an animal, a misdemeanor, after his dog, Sugar, and another dog were found chained to the fence of his Pennsylvania Avenue home in August 2015, prosecutors said. He was also barred for five years from owning and caring for animals, officials said.

No food and water was available for the dogs when the district attorney’s animal crimes unit and workers from the Hempstead Town animal shelter saw them, authorities said.

Garbage, feces and broken glass were spread throughout the area by the dogs, prosecutors said.

The two animals were taken to the shelter and treated for their injuries.

Ear mites infested the ears of Sugar, which also went by the name Tinkerbell, prosecutors said.

advertisement | advertise on newsday

“When she was rescued, this helpless dog was covered in flies, severely underweight and suffering in squalor,” Nassau District Attorney Madeline Singas said in a news release. “No animal should be subjected to such neglect.”

The pit bull mix and the other dog, which did not have serious injuries, were adopted separately, officials said.

Dunston had been identified early on as the owner, prosecutors said.

He was charged with animal neglect last month while in an upstate prison, where he was accused of violating parole on a felony drug sale conviction. Legal aid is representing Dunston on the latest charge and maintains a policy of not commenting on cases.