Abstract: A device has two machine parts that are movable relative to one another and are connected to each other by a supply line along which a sensor line is mounted for measuring torsion of the supply line. The sensor line is connected to a measurement unit which is configured in such a way that an electrical parameter of the sensor line is measured, the torsion being ascertained using the parameter.