PROBLEM TO BE SOLVED: To provide an inexpensive and high-precision water level sensor capable of being attached without undermining a liquidtight state of a storage tank and capable of continuously detecting a liquid level of fluid stored in the storage tank.SOLUTION: A water level sensor 100 of the invention includes: a liquid contact detection part 103 for detecting the contact with liquid a holding part 104 disposed in a storage tank 4 for storing liquid for holding the liquid contact detection part 103 and a suction part 105 disposed so as to move to the outer wall surface 4D of the storage tank 4 so that the suction part 105 and the holding part 104 suction each other in a non-contact manner, and the suction part 105 presses the holding part 104 against the inner wall surface 4c of the storage tank 4. The holding part 104 and the suction part 105 are configured so that one of them has a magnet 106 and the other has a metal or a magnetic material, or both of them have a magnet 106.COPYRIGHT: (C)2014,JPO&INPIT【課題】貯留槽の液密状態を損なうことなく取り付けることができるとともに、貯留槽内に貯留される液体の液面を連続的に検知することができる安価で高精度な水位センサを提供する。【解決手段】本発明の水位センサ100は、液体との接触を検知する液体接触検知部103と、液体を貯留する貯留槽4内に配置され、液体接触検知部103を保持する保持部104と、貯留槽4の外壁面4Dに移動可能に配置され、非接触で保持部104と吸引し合い保持部104を貯留槽4の内壁面4Cに押し付ける吸引部105と、を備え、保持部104および吸引部105は、いずれか一方に磁石106を備えて他方に金属または磁性体を備えるか、または双方に磁石106を備えて構成した。【選択図】図2