Amber PortwoodTo Be Released from Jail ... TODAY

2/24/2012 4:00 AM PST BY TMZ STAFF

It's been over two months since "Teen Mom" star Amber Portwood was locked up for drug possession -- but TMZ has learned, she's set to be released from jail TODAY ... though it's not exactly a good thing.

Law enforcement sources tell us, the Indiana judge in her drug case is going to release Amber today for one reason and one reason only -- the halfway house where Amber was supposed to complete a drug treatment program has refused to accept her.

According to sources, people at the transitional home -- called Sister 2 Sister Ministries -- felt Portwood is too much of a handful and embodies too much negative energy to benefit from its program.

Since no one else wants her -- the judge decided to release her today ... with an electronic monitoring bracelet.

But Amber's not out of the woods -- we're told the judge will still require her to apply for residency at another home ... but that process could take months.

Amber will remain on home detention until a different drug treatment program accepts her.