This type of switching device has a switch, a circuit board and other components accommodated inside a case, and a cylinder which is disposed on the upper surface of the case and opens to above and below to communicate with the inside of the case, as disclosed in JP-A-8-180755 and JP-A-5-314864 (Patent References 1 and 2).