The present disclosure 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.