QUEENSBURY — A Glens Falls man picked up his fourth felony conviction in less than 20 years this week when he pleaded guilty to charges he gave marijuana to a teen who police said he had sexually abused.

Albert M. Pelkey, 37, pleaded guilty to second-degree criminal sale of marijuana, a felony, and misdemeanor forcible touching in connection with an arrest last June in Glens Falls for providing marijuana to a 16-year-old boy with whom he had a sexual relationship. Under state law, giving drugs to another person is considered a sale.

He was not accused of forcing the teen to have sex, but the charge was brought because the teen was too young to consent to sexual relations.

Warren County Judge John Hall sentenced Pelkey to 2 years in state prison and 2 years on parole on the felony charge, with a one-year jail sentence on the misdemeanor charge to be served concurrently. He could have faced up to 25 years to life in prison as a persistent felon, but instead opted for a plea deal with a guaranteed lesser sentence.

Pelkey was also charged last fall in connection with a related case in Hudson Falls, for alleged sexual contact with a teen younger than 17. He faces a felony count of criminal sexual act in that case, but Kingsbury Town Court would not release information about the case Tuesday.

His lawyer, Tucker Stanclift, said those charges had been adjourned, pending a resolution in Warren County.

Pelkey will have to register as a sex offender because of the forcible touching conviction.

Pelkey was paroled in June 2014 for a 2010 felony drug conviction in Washington County, which stemmed from possession of cocaine and opioid painkiller pills with intent to distribute.

He has been to state prison three times since 1999 — for robbery, attempted criminal possession of a weapon and attempted criminal possession of a controlled substance in Washington and Warren counties. His record does not include any sex offenses before last year’s arrests, so he had not been required to register as a sex offender.