A retired New York City police officer who lives in East Meadow was arraigned Wednesday on felony child pornography charges, prosecutors said.

Frank Castro, 47, faces 2 1/3 to 7 years in prison if found guilty of the top count, Nassau County District Attorney Madeline Singas said.

“Innocent children are the victims of horrific sexual exploitation to produce the pornography that this defendant is accused of possessing,” Singas said in a statement.

The prosecutor highlighted the sophisticated technology and advanced investigative techniques now deployed to find people who produce or possess child pornography.

“Anyone trafficking child pornography in Nassau County should expect law enforcement to show up at their door,” she said.

In March and April 2016, district attorney investigators “observed an individual possessing multiple images of child pornography over the Internet,” Singas said. They tracked the source of the pornography to Castro’s residence, prosecutors said.

advertisement | advertise on newsday

When he was arrested on Tuesday, investigators seized evidence, Singas said.

District Court Judge Darlene Harris, who required Castro to relinquish his pistol license, set bail at a total of a $100,000 bond or $50,000 in cash. His next court appearance is May 6.

Castro, who faces four felony counts, retired from the NYPD and now works as a security contractor, prosecutors said.