A Queens middle school teacher was busted with kiddie porn on his phone Tuesday — which prosecutors said he bought using payment app Venmo.

Eric Paulino, 30, a Department of Education employee who a source says works as a special ed teacher at IS 93 in Ridgewood, pleaded not guilty in Brooklyn federal court to possessing child porn and was released after posting a $250,000 bond.

According to the criminal complaint against Paulino, the FBI allegedly found videos and images of children engaging in sex acts on the teacher’s smartphone Tuesday morning after federal agents executed a search warrant at his residence, which is also in Ridgewood.

Agents obtained the warrant after learning that Paulino allegedly used an online alias and made purchases from a “known purveyor of child pornography” via Venmo, court documents say.

Paulino allegedly admitted to agents that he has used his phone to download and trade kiddie porn, the complaint states.

Paulino’s attorney, Jeffery Greco, noted to The Post that his client is not being accused of accessing child porn on school grounds or having any sexual contact with students.

“He wasn’t searching on any school property and at no time did he violate any barrier between a teacher and a student,” Greco said.

The DOE said the are “reassigning this teacher away from the classroom because of this deeply disturbing allegation.”