A gear motor for a vending machine comprising, a box (2, 3), an electric motor mounted on the box (2, 3) and comprising a driving shaft entering into the box (2, 3), a train of gear wheels (12, 23, 24, 25, 22) arranged within the box (2, 3) and driven by the driving shaft, the slowest of said gear wheels, hereinafter output wheel, having a coupling interface by means of which the output wheel may be coupled to a dispensing member of the vending machine, and a sensor arranged on the box (2, 3) and adapted to detect an angular position of the output wheel of the gear motor and provide a pulsed electric signal indicative of said angular position, said sensor comprising a movable part integral with the output wheel and having a detectable feature, and a fixed transduction part integral with the box (2, 3) and responsive to the detectable feature of the movable part, the gear motor being characterized in that said movable part of the sensor is mechanically reconfigurable to reconfigure the electric signal of the sensor in number or angular position of pulses per revolution of the output wheel, wherein the movable part of the sensor is supported by a movable part support which is removably mounted on the output wheel in such a way that the movable part of the sensor may be mechanically reconfigured, wherein the output wheel has a mounting seat adapted to receive the movable part support, said mounting seat adapted to be coupled to a hole obtained in the movable part support and configured to allow the mechanical reconfiguration of the movable part, wherein the mounting seat has at least one key or tab, a prismatic shape or a cylindrical shape with a non-circular cross-section. a box (2, 3), an electric motor mounted on the box (2, 3) and comprising a driving shaft entering into the box (2, 3), a train of gear wheels (12, 23, 24, 25, 22) arranged within the box (2, 3) and driven by the driving shaft, the slowest of said gear wheels, hereinafter output wheel, having a coupling interface by means of which the output wheel may be coupled to a dispensing member of the vending machine, and a sensor arranged on the box (2, 3) and adapted to detect an angular position of the output wheel of the gear motor and provide a pulsed electric signal indicative of said angular position, said sensor comprising a movable part integral with the output wheel and having a detectable feature, and a fixed transduction part integral with the box (2, 3) and responsive to the detectable feature of the movable part, the gear motor being characterized in that said movable part of the sensor is mechanically reconfigurable to reconfigure the electric signal of the sensor in number or angular position of pulses per revolution of the output wheel, wherein the movable part of the sensor is supported by a movable part support which is removably mounted on the output wheel in such a way that the movable part of the sensor may be mechanically reconfigured, wherein the output wheel has a mounting seat adapted to receive the movable part support, said mounting seat adapted to be coupled to a hole obtained in the movable part support and configured to allow the mechanical reconfiguration of the movable part, wherein the mounting seat has at least one key or tab, a prismatic shape or a cylindrical shape with a non-circular cross-section.