Minn. Stat. § 169A.275
Subd. 1. Second offense.
(a) The court shall sentence a person who is convicted of a violation of section 169A.20 (driving while impaired) within ten years of a qualified prior impaired driving incident to either:
(2) eight hours of community work service for each day less than 30 days that the person is ordered to serve in a local correctional facility.
Notwithstanding section 609.135 (stay of imposition or execution of sentence), the penalties in this paragraph must be executed, unless the court departs from the mandatory minimum sentence under paragraph (b) or (c).
Subd. 2. Third offense.
(a) The court shall sentence a person who is convicted of a violation of section 169A.20 (driving while impaired) within ten years of the first of two qualified prior impaired driving incidents to either:
Subd. 3. Fourth offense.
(a) Unless the court commits the person to the custody of the commissioner of corrections as provided in section 169A.276 (mandatory penalties; felony violations), the court shall sentence a person who is convicted of a violation of section 169A.20 (driving while impaired) within ten years of the first of three qualified prior impaired driving incidents to either:
Subd. 4. Fifth offense or more.
(a) Unless the court commits the person to the custody of the commissioner of corrections as provided in section 169A.276 (mandatory penalties; felony violations), the court shall sentence a person who is convicted of a violation of section 169A.20 (driving while impaired) within ten years of the first of four or more qualified prior impaired driving incidents to either:
Subd. 5. Level of care recommended in substance use disorder assessment.
Unless the court commits the person to the custody of the commissioner of corrections as provided in section 169A.276 (mandatory penalties; felony violations), in addition to other penalties required under this section, the court shall order a person to submit to the level of care recommended in the substance use disorder assessment conducted under section 169A.70 (alcohol safety program; substance use disorder assessments) if the person is convicted of violating section 169A.20 (driving while impaired) while having an alcohol concentration of 0.16 or more as measured at the time, or within two hours of the time, of the offense or if the violation occurs within ten years of one or more qualified prior impaired driving incidents.
Subd. 6. Definitions.
Subd. 7. Exception.
A judge is not required to sentence a person as provided in subdivisions 1 to 4 if the judge requires the person as a condition of probation to drive only motor vehicles equipped with an ignition interlock device meeting the standards described in section 171.306.