A medical imaging device, comprising a handpiece, an elongated shaft, a light source positioned at a distal end section of the shaft for illuminating a viewing area, wherein the elongated shaft comprises a cavity, an electrical conductor and/or a working channel, and wherein the medical imaging device further comprises a carrier device for pre-mounting and holding a sensor assembly and for insertion into the cavity of the shaft, the carrier device comprising a distal side, a proximal side, a top side, a bottom side, and two opposing sides, wherein the sensor assembly is associated with the carrier device, the sensor assembly comprising at least one sensor, a bottom side and two opposing sides, wherein the sensor is configured to be mounted on the distal side of the carrier device, and wherein the carrier device has a continuous cavity from the proximal side to the distal side, and is configured such that when the sensor is preassembled on the distal side of the carrier device, the sensor can be aligned from the inside of the carrier device into a predetermined position by means of an alignment tool which can be inserted into the cavity.