PHOENIX — A Phoenix man found with a needle in his arm and passed out in his car with his two young children in the back seat has pleaded guilty to aggravated DUI with a person under the age of 15 in the vehicle.

Maricopa County Superior Court officials say Scott Marley changed his plea to guilty in the case Tuesday.

He’s scheduled to be sentenced on Aug. 16.

Phoenix police arrested the 24-year-old Marley on July 6 after he was found in his car outside a gas station.

They say Marley admitted to using heroin earlier in the day.

Police say a drug needle was found in Marley’s car along with his two children, ages 1 and 5.

They say Marley failed field sobriety tests and was taken into custody.