HAVERHILL — A Haverhill man who pleaded guilty to possession of child pornography was sentenced to 1 1/2 to 2 years in state prison.

According to the state Attorney General's office, Daniel Villers, 40, of 39 Cedar St., was sentenced last December in Essex Superior Court by Judge Thomas Dreschler after pleading guilty to one count of possession of child pornography.

According to a police report on file in Haverhill District Court, on Feb. 15, 2018, members of the Massachusetts State Police executed a search warrant at Villers' Cedar Street home as part of an investigation that began in October of 2017 related to the possession and dissemination of child pornography.

State Police said a CyberTipline report that had been submitted electronically by Chatstep to the National Center for Missing and Exploited Children was subsequently forwarded to the Attorney General's Office State Police Detective Unit for investigation.

Police said Chatstep is a secure, private, web-based chat room where users can create temporary chat rooms that “disappear” when the creator of a chat room ends the web session.

The files identified by Chatstep were determined to be child pornography, police said. Investigators traced those files to an IP address linked to Villers' internet account, police said.

Police said they used a search warrant at Villers' apartment and found a laptop computer, a camera, a smartphone and a desktop computer with a hard drive that contained several image files of child pornography.