In one aspect the present disclosure relates to a sensor for measuring at least one physical or chemical parameter of a cartridge or syringe filled with a liquid substance. In further aspects the disclosure relates to a cartridge equipped with such a sensor as well as to a drug delivery device equipped with such a cartridge, wherein the sensor comprises: