A device for detecting an analyte in a sample is provided, which comprises: a collecting chamber containing an opening for collecting a liquid sample; a detecting element for detecting an analyte in the liquid sample; and a lid for covering the opening of the collecting chamber. The device further comprises an indicating device thereon to indicate whether or not the lid covers at an appointed position. The operation of the device is very simple.