A sting dubbed “Operation Home Alone” snared 16 alleged child-sex predators, including a Bronx high-school teacher, a New Jersey cop and a Philadelphia minister, officials said Wednesday.

After chatting up what they thought were underage boys and girls on social-media and hook-up apps like Kik, Tinder and Grindr, most of the defendants flocked to a Bergen County, NJ home where they expected to meet the kids for sex, officials said.

“Fortunately, their victims were really undercover officers prepared to put them in handcuffs,” said New Jersey Attorney General Gurbir Grewal in a press briefing on the sting, which nearly 30 agencies ran from April 11 through April 15.

Posing as both boys and girls between 13 and 15, cops created profiles on popular apps, then simply sat back and waited for the predators to come to them, officials said.

And even though the “kids” made clear in their conversations with the creeps that they were well underage, 16 of them asked to meet up for sex, authorities allege.

“Oh wow. Really young,” wrote Kevin Roth when told he was talking to a 14-year-old boy, according to an affidavit of probable cause. But that didn’t stop the 26-year-old math teacher at the public High School of

Computers and Technology in The Bronx from allegedly writing, “I’ll do anything u want me to.

“Sex stuff. Kinky stuff. Embarrassing stuff. Chores. Anything.”

A Department of Education spokesman said Roth had been reassigned away from kids, pending a criminal probe into the “incredibly disturbing allegation.”

Other authority figures caught up include Roger Arroyo, a 37-year-old minister who traveled all the way from Philadelphia expecting a 14-year-old girl, and now-suspended Ridgewood, NJ cop Peter Tuchol Jr., officials said.

“Dude we both wanna f- -k. And you know that,” Tuchol allegedly wrote to what he thought was a 15-year-old girl he met on dating app Tinder — on which he used a profile picture of himself in uniform, according to a probable-cause affidavit.

Each of the three defendants faces charges including luring, punishable by five to 10 years in prison.

Officials said that the bust underscores the ways the Internet has transformed the crime from the days of sickos enticing kids on the street.

Additional reporting by Selim Algar