A railroad corporation whose railroad is crossed by a public way at the same grade shall, at its own expense, install at any such grade crossing designated by the department and used by through passenger trains or cars or through freight trains a device to activate by hand a warning signal which shall audibly or visibly warn an approaching train from the grade crossing of danger at said grade crossing.
Mass. Gen. Laws ch. 160, § 138A