An implantable substrate sensor has electronic circuitry and electrodes formed on opposite sides of a substrate. The method and device include at least three discrete light sources, a 2D image generating device, a lens, and a processor. The controllable switch of the switching unit is controlled to be conductive in the first and second operating state. Either the molding units or the carrying member is provided with coded information pertaining to the treatment each molding unit is to receive.