A man arrested in January after police allegedly found a variety of drugs in a Casper apartment pleaded guilty Tuesday in Natrona County District Court to three felony charges.

James Ryan Wesley Rachel, 30, entered guilty pleas on two counts of child endangerment with methamphetamine and one count of felony possession of LSD. He could be ordered to serve 15 years in prison and pay $20,000 in fines at most.

But Rachel will likely not see any time behind bars, as the state agreed to recommend he serve no prison time in exchange for his guilty pleas.

The plea agreement also calls for the state to dismiss three other charges -- one felony count of delivery of a controlled substance, one count of felony methamphetamine possession and one count of felony marijuana possession.

Rachel was one of two people in a Casper apartment when officers, who were following up on a man's claim that he had bought marijuana from Rachel at the apartment, showed up and asked to search the home on Jan. 18.

A young girl was in the home when officers arrived. They later found marijuana, hydrocodone, amphetamine pills, a methamphetamine pipe, LSD and other drug paraphernalia, according to court documents.

Agents with the Wyoming Department of Family Services arrived and took protective custody of children who lived in the apartment, according to court documents.

Rachel will be sentenced at a later date.