Amber Portwood Dodges Prison After Drug Test Violation

3/8/2012 1:28 PM PST

"Teen Mom" star Amber Portwood will NOT be heading back to the big house after failing to take a required drug test this week ... TMZ has learned -- but the judge didn't let her off the hook either.

Law enforcement sources tell TMZ, the judge ordered Amber to submit to an extra 30 DAYS of daily drug testing for failing to procure a urine sample on Monday -- an automatic "fail" when it comes to drug testing.

And there's more -- we're told Amber didn't just botch a drug test, she also missed an AA meeting recently ... another big no-no, according to the terms of her release.

As punishment for playing hooky, Amber is also required to re-read the drug court handbook and write a 500-word report on her responsibilities as a drug court participant.