Active railroad crossings:

Railroad crossings with control devices to regulate traffic are known as active crossings. Control devices may include regulators such as flashing red lights, warning bells, and gates. Drivers are required by law to follow instructions given by control devices.
DMV Writen Test