The present invention relates to an injector device having a container and a plunger. The plunger is movable into the container to dispense medicament during operation of the injector device. The injector device also has a switch arranged to interact with a structural element of the plunger to detect movement of the plunger during operation of the injector device.本發明涉及一種具有容器和柱塞的注射裝置。在該注射裝置的操作期間該柱塞可移動到該容器中以分配藥劑。該注射裝置還具有配置成與該柱塞的結構元件相互作用的開關,以在該注射裝置的操作期間檢測該柱塞的移動。