Rotary switch comprising - a switch body which identifies an inner space which rotatably houses a shaft rotating around a rotation axis (X-X), operatively connected to an actuator device external to the switch, such as a valve or an actuator, characterised by - a distribution valve positioned outside said inner space of the switch body and pneumatically connectable to said external actuator device, - a pneumatic connector and at least one control means, such as a solenoid, operatively connected to the pneumatic connector, - the pneumatic connector being at least partially positioned in the wall of the switch body, - the control means being positioned in the inner space of the switch body, - the control means being adapted to be operatively connected to an external control device, the distribution valve being pneumatically connectable to the external actuator and operatively connected to the control means by means of the pneumatic connector, so as to permit its selective operation by the control means, wherein - the pneumatic connector defines at least one connection channel placing the distribution valve in fluidic connection with the control means, wherein the connection channel crosses the pneumatic connector which in turn crosses a side wall of the switch body, - wherein inside the connection channel at least one anti-explosion means is inserted, positioned coaxially to the connection channel so as to reduce the through cross-section thereof by a predefined length of the connection channel, - wherein, at the anti-explosion means, the through cross-section is confined on an outer circular crown of the connection channel, delimited between an inner side wall of the connection channel and an external lateral wall of the anti-explosion means. - a switch body which identifies an inner space which rotatably houses a shaft rotating around a rotation axis (X-X), operatively connected to an actuator device external to the switch, such as a valve or an actuator, characterised by - a distribution valve positioned outside said inner space of the switch body and pneumatically connectable to said external actuator device, - a distribution valve positioned outside said inner space of the switch body and pneumatically connectable to said external actuator device, - a pneumatic connector and at least one control means, such as a solenoid, operatively connected to the pneumatic connector, - the pneumatic connector being at least partially positioned in the wall of the switch body, - the control means being positioned in the inner space of the switch body, - the control means being adapted to be operatively connected to an external control device, the distribution valve being pneumatically connectable to the external actuator and operatively connected to the control means by means of the pneumatic connector, so as to permit its selective operation by the control means, wherein - the pneumatic connector defines at least one connection channel placing the distribution valve in fluidic connection with the control means, wherein the connection channel crosses the pneumatic connector which in turn crosses a side wall of the switch body, - wherein inside the connection channel at least one anti-explosion means is inserted, positioned coaxially to the connection channel so as to reduce the through cross-section thereof by a predefined length of the connection channel, - wherein, at the anti-explosion means, the through cross-section is confined on an outer circular crown of the connection channel, delimited between an inner side wall of the connection channel and an external lateral wall of the anti-explosion means.