(A) Whenever any person driving a vehicle approaches a railroad grade crossing where the driver is not always required to stop, the person must exercise due care and caution as the existence of a railroad track across a highway is a warning of danger, and under any of the circumstances stated in this section, the driver shall stop within 50 feet but not less than 15 feet from the nearest rail of the railroad, and shall not proceed until the tracks are clear and he or she can do so safely. The foregoing requirements shall apply when:
(1) A clearly visible electric or mechanical signal device gives warning of the immediate approach of a railroad train or railroad track equipment;
(2) A crossing gate is lowered or a human flagman gives or continues to give a signal of the approach or passage of a railroad train or railroad track equipment;
(3) A railroad train or railroad track equipment approaching a highway crossing emits a warning signal and such railroad train or railroad track equipment, by reason of its speed or nearness to the crossing, is an immediate hazard;
(4) An approaching railroad train or railroad track equipment is plainly visible and is in hazardous proximity to the crossing;
(5) A railroad train or railroad track equipment is approaching so closely that an immediate hazard is created.
(B) Whenever a person driving a vehicle approaches a railroad grade crossing where the driver is not always required to stop but must slow down, the person must exercise due care and caution as the existence of a railroad track across a highway is a warning of danger, and under any of the circumstances stated in this section, the driver shall slow down within 50 feet but not less than 15 feet from the nearest rail of the railroad and shall not proceed until he or she checks that the tracks are clear of an approaching train or railroad track equipment.
(C) No person shall drive any vehicle through, around, or under any crossing gate or barrier at a railroad crossing while the gate or barrier is closed or is being opened or closed.
(D) The department, and local authorities with the approval of the department, are authorized to designate particularly dangerous highway grade crossings of railroads and to erect stop signs thereat. When stop signs are erected, the driver of any vehicle shall stop within 50 feet but not less than 15 feet from the nearest rail of the railroad, and shall proceed only upon exercising due care.
(E) At any railroad grade crossing provided with railroad crossbuck signs, without automatic, electric, or mechanical signal devices, crossing gates, or a human flagman giving a signal of the approach or passage of a train or railroad track equipment, the driver of a vehicle shall in obedience to the railroad crossbuck sign, yield the right-of-way and slow down to a speed reasonable for the existing conditions and shall stop, if required for safety, at a clearly marked stop line, or if not stop line, within 50 feet but not less than 15 feet from the nearest rail of the railroad and shall not proceed until he or she can do so safely. If a driver is involved in a collision at a railroad crossing or interferes with the movement of a train or railroad track equipment after driving past the railroad crossbuck sign, the collision or interference is prima facie evidence of the driver's failure to yield right-of-way.
(F) No person shall, while driving a commercial motor vehicle, fail to negotiate a railroad- highway grade railroad crossing because of insufficient undercarriage clearance.
(G) It is unlawful to violate any part of this section.
(1) A violation of this section is a petty offense for which a fine of $250 shall be imposed for a first violation, and a fine of $500 shall be imposed for a second or subsequent violation. The court may impose 25 hours of community service in place of the $250 fine for the first violation.
(2) For a second or subsequent violation, the Secretary of State may suspend the driving privileges fo the offender for a minimum of six months.
(H) Corporate authorities of municipal corporations regulating operators of vehicles that fail to obey signals indicating the presence, approach, passage, or departure of a train or railroad track equipment shall impose fines as established in division (G) above.
(ILCS Ch. 625, Act 5, § 11-1201) Penalty, see § 70.999