A sensor for use in a liquid medication delivery system is presented. The sensor has a micro-fluidic chamber comprising a rigid bottom structure, a cover, and an optical detection system that emits one or more light beams toward the cover membrane and to observe the one or more light beams reflected from the cover membrane. The optical detection system is on a side of the bottom structure opposite to the cover membrane.