KINGSBURY — A Kingsbury woman was arrested Saturday for allegedly allowing her 15-year-old daughter to have sex with an 18-year-old in her home, police said.

The 18-year-old Queensbury man was also arrested, according to State Police.

The woman, whose name is being withheld so as not to identify her daughter, was charged with unlawfully dealing with a child, a misdemeanor, police said. She knew her daughter was having a sexual relationship with her older boyfriend, and allowed encounters in their home provided they use "protection," police said.

The 18-year-old, whose name was not released, was charged with misdemeanor counts of sexual misconduct and endangering the welfare of a child, police said.

State Police were called when a relative of the girl discovered social media messages last month between her and the 18-year-old about sex, and police are looking into whether additional charges are warranted because the teen may have illegally sent lewd pictures to the girl, officials said.

Both the mother and teen were released pending prosecution in Kingsbury Town Court.

The state's age of legal consent to sexual relations is 17.

State Police from the Granville station handled the case.