(720 ILCS 5/26.5-5)
    Sec. 26.5-5. Sentence.
    (a) Except as provided in subsection (b), a person who violates any of the provisions of Section 26.5-1, 26.5-2, or 26.5-3 of this Article is guilty of a Class B misdemeanor. Except as provided in subsection (b), a second or subsequent violation of Section 26.5-1, 26.5-2, or 26.5-3 of this Article is a Class A misdemeanor, for which the court shall impose a minimum of 14 days in jail or, if public or community service is established in the county in which the offender was convicted, 240 hours of public or community service.
    (b) In any of the following circumstances, a person who violates Section 26.5-1, 26.5-2, or 26.5-3 of this Article shall be guilty of a Class 4 felony:
        (1) The person has 3 or more prior violations in the
    
last 10 years of harassment by telephone, harassment through electronic communications, or any similar offense of any other state;
        (2) The person has previously violated the harassment
    
by telephone provisions, or the harassment through electronic communications provisions, or committed any similar offense in any other state with the same victim or a member of the victim's family or household;
        (3) At the time of the offense, the offender was
    
under conditions of pretrial release, probation, conditional discharge, mandatory supervised release or was the subject of an order of protection, in this or any other state, prohibiting contact with the victim or any member of the victim's family or household;
        (4) In the course of the offense, the offender
    
threatened to kill the victim or any member of the victim's family or household;
        (5) The person has been convicted in the last 10
    
years of a forcible felony as defined in Section 2-8 of the Criminal Code of 1961 or the Criminal Code of 2012;
        (6) The person violates paragraph (5) of Section
    
26.5-2 or paragraph (4) of Section 26.5-3; or
        (7) The person was at least 18 years of age at the
    
time of the commission of the offense and the victim was under 18 years of age at the time of the commission of the offense.
    (c) The court may order any person convicted under this Article to submit to a psychiatric examination.
(Source: P.A. 101-652, eff. 1-1-23.)