A device and method for operating an in-vivo imaging device wherein the illumination produced by the device may be varied in intensity and/or duration according to, for example, the amount of illumination produced by the device which is reflected back to the device. In such a manner, the illumination can be controlled and made more efficient.