A Berkeley teacher found with LSD after a traffic stop in San Rafael pleaded guilty to a felony charge Monday in Marin Superior Court.

Douglas Haight, of Berkeley, appearing before Judge James Chou, admitted to possession of LSD as well as a misdemeanor drunken driving charge, said prosecutor Chris Tarbell. The district attorney's office dismissed a charge of bringing LSD into the county jail.

Under the plea arrangement, the convictions will eventually be dismissed if Haight, 51, remains law-abiding and meets other conditions. He will also avoid a potential three-year prison sentence.

Haight's defense attorney, Derek St. Pierre, said drunken driving, while wrong, is a common offense.

"He looks forward to being an ongoing responsible member of the community," St. Pierre said after the hearing.

Haight, until recently an adviser to high school students in Berkeley who are in the independent study program, was arrested Dec. 1 after running a red light in San Rafael. Police said Haight showed signs of intoxication, and he reported that he had just left Terrapin Crossroads, the restaurant and music venue opened by former Grateful Dead member Phil Lesh.

Breath tests taken at the scene showed preliminary blood-alcohol readings of .13 percent and .12 percent, above the .08 percent legal limit for driving, police said.

When police booked him at the county jail, Haight turned in his belongings for storage, including a bottle of breath mint that was in his pants pocket. A jail deputy suspected it might contain drugs, and the liquid tested positive for the hallucinogen LSD, police said.

Haight's employment at Berkeley Unified School District ended after his arrest because the state revoked his teaching credential.