A Sanford man has been charged with selling heroin and possessing cocaine.

The Maine Drug Enforcement Agency arrested Timothy Duval, 41, on Saturday night after a car he was a passenger in was stopped by Maine State Police in Lebanon.

The MDEA said it has been investigating Duval since December. It said MDEA agents learned that Duval regularly traveled to Massachusetts to purchase large quantities of heroin, which he would then sell out of his Sanford home.

About 10 p.m. Saturday, state police stopped a vehicle on Route 202 in Lebanon after agents received a tip that Duval would be returning to Maine from Massachusetts with heroin.

Duval was found to have 60 grams of heroin and 3.5 grams of cocaine in his possession when the vehicle he was in was stopped, the MDEA said. The street value of the heroin is about $20,000.