1. A method for measuring different medium layers of a measuring medium using a multi-sensor probe to be dipped into the measuring medium, comprising: providing the probe which is longitudinally segmented into a plurality of segments, each segment comprising a sensor for measuring a predetermined physical parameter of the surrounding medium; defining a measurement model, said model modeling signals of the sensors as a function of positions of a number of interfaces between the medium layers and the physical parameters of the medium layers; defining prior distributions of the number of the interfaces, the positions of the interfaces and the physical parameters of the medium layers; based on the measurement model and the prior distributions determining a joint posterior distribution of the number of the interfaces and the positions of the interfaces; and evaluating a joint posterior distribution of the number of the interfaces and the positions of the interfaces based on Markov Chain Monte Carlo methods.