SensorModel calculates weights. Code builds.