The embodiments of the present invention relates to a sensor block for measuring fluid flow or pressure in a tube. The sensor block comprises a sensor and a housing. The housing has a resilient clamp part which is shaped such that it can be plugged onto a tube along the radial direction and is part of the tube in the plugged state. The invention also relates to a tube, which is produced by means of MID technology. The tube comprises conductor paths and a sensor, which is firmly connected to the tube. The tube further comprises two elongated grooves for releasable attachment of a sensor block. The embodiments of the present invention further relates to a production method, in which both a sensor block and a tube are manufactured with an identical mask set, injection molding tool or control program component.