The device is suitable for the detection and operation of the opening and closing movements of electric doors of trams and subway vehicles.