This paper introduces an elevator guide rail straightness detection device, which includes a base, a guide rail installed on the base, a slider installed on the guide rail, a sensor installed on the slider, and a display installed on the sensor. The device can measure the straightness of the guide rail and display it on the display. The device can be used to detect the straightness of the elevator guide rail to ensure the quality of the elevator guide rail.