BENNINGTON — A local man faces up to five years in prison after pleading guilty Friday to failing to comply with the sex offender registry for more than five consecutive days between June 2012 and January 2013.

Douglas C. Kramer, 20, of Bennington, was arraigned in Bennington criminal court in January on two felony counts of failing to comply with the sex offender registry for longer than five days. The second charge was modified to note that Kramer had been convicted of failing to comply with the registry before in May 2012.

In an affidavit, Detective Anthony Silvestro of the Bennington Police Department said Kramer had been convicted of lewd and lascivious conduct in 2005. The conviction requires Kramer to be registered as a sex offender in Vermont.

According to Silvestro, Kramer was in violation of the registry’s conditions at the time he began his investigation in January because he had not returned a letter confirming his address to the registry’s office. The letter Kramer had not returned was sent to him at the end of August 2012.

Silvestro said when he spoke to Kramer in January, Kramer lied about where he was living. According to the affidavit, Silvestro learned that Kramer was staying in a School Street apartment, as he claimed, but in a different apartment than the one he reported to Silvestro.

When Kramer changed his plea Friday in Bennington criminal court, there was no sentencing agreement in place. He could be sentenced to up to five years in prison on the charge.

As part of the agreement, the state agreed to dismiss the second charge against Kramer.