The present invention relates to a method for measuring the position of a stopper of a drug ampoule, in particular in a medical device, by means of a light source and the surface of a photosensor, and to an apparatus for carrying out the method.Light source, photosensor, stopper본 발명은 광원과 감광 센서 표면에 의해서 특히 의료 장치 내의 약제 앰풀의 스토퍼 위치를 측정하는 방법과, 이 방법을 수행하기 위한 장치에 관한 것이다.