A side casing (20, 22) for a gate for controlling access to a restricted area, said side casing comprising: - a frame defining an access passage to the restricted area and having a floor plan, - at least one obstacle, movable between an obstructing position and an opening position, to selectively obstruct or allow access, - a motor assembly for driving said obstacle, comprising a motor; - an output shaft coupled to said obstacle and designed to be driven in rotation around its axis by said motor assembly to hold the obstacle in an obstructing position or to move the obstacle so as to allow access according to a respective current instruction to obstruct or allow said access; - an electronic control unit designed to make the motor obey on the basis of the current instruction; the motor assembly further comprising an angular position sensor designed to measure the angular position of the shaft, the electronic control unit being designed to calculate temporal variations in angle, when the obstacle is held in an obstructing position according to a current instruction to obstruct access so as to collect the angular measurements made by the sensor, on a basis of said collected measurements and to trigger an action, on the basis of said calculated angular variations compared to a plurality of standard profiles, of: - an increase, a reduction or a limitation of a torque instruction applied to hold the obstacle in an obstructed position; and - an instruction to allow said access; said side casing being characterized in that the electronic control unit is designed, when the obstacle is held in the obstructing position according to a current instruction to obstruct access, so as to: - trigger an instruction to allow said access as soon as said temporal variations in angle calculated exceed a predetermined threshold S1 for at least a predetermined threshold time T0 and - trigger a torque modification instruction as soon as said temporal variations in angle calculated continuously exceed a second predetermined threshold S2 greater than the predetermined threshold S1 for at most a second predetermined threshold time T less than the predetermined threshold time T0. - a frame defining an access passage to the restricted area and having a floor plan, - at least one obstacle, movable between an obstructing position and an opening position, to selectively obstruct or allow access, - a motor assembly for driving said obstacle, comprising a motor; - an output shaft coupled to said obstacle and designed to be driven in rotation around its axis by said motor assembly to hold the obstacle in an obstructing position or to move the obstacle so as to allow access according to a respective current instruction to obstruct or allow said access; - an electronic control unit designed to make the motor obey on the basis of the current instruction; the motor assembly further comprising an angular position sensor designed to measure the angular position of the shaft, the electronic control unit being designed to calculate temporal variations in angle, when the obstacle is held in an obstructing position according to a current instruction to obstruct access so as to collect the angular measurements made by the sensor, on a basis of said collected measurements and to trigger an action, on the basis of said calculated angular variations compared to a plurality of standard profiles, of: - an increase, a reduction or a limitation of a torque instruction applied to hold the obstacle in an obstructed position; and - an instruction to allow said access; - an increase, a reduction or a limitation of a torque instruction applied to hold the obstacle in an obstructed position; and - an instruction to allow said access; said side casing being characterized in that the electronic control unit is designed, when the obstacle is held in the obstructing position according to a current instruction to obstruct access, so as to: - trigger an instruction to allow said access as soon as said temporal variations in angle calculated exceed a predetermined threshold S1 for at least a predetermined threshold time T0 and - trigger a torque modification instruction as soon as said temporal variations in angle calculated continuously exceed a second predetermined threshold S2 greater than the predetermined threshold S1 for at most a second predetermined threshold time T less than the predetermined threshold time T0. - trigger an instruction to allow said access as soon as said temporal variations in angle calculated exceed a predetermined threshold S1 for at least a predetermined threshold time T0 and - trigger a torque modification instruction as soon as said temporal variations in angle calculated continuously exceed a second predetermined threshold S2 greater than the predetermined threshold S1 for at most a second predetermined threshold time T less than the predetermined threshold time T0.