A method of expanding the range of working environments in which a 3-D or active depth sensor can operate without damaging or degrading the measurement performance of the sensor, the sensor having a rigid, thermally conductive, sensor rail and a plurality of optoelectronic components including a pattern emitter capable of projecting a known pattern of radiation and one or more cameras or detectors configured to view the projected known pattern of radiation, each of the components being mounted on and in thermal contact with the sensor rail which distributes heating or cooling to the components, the method comprising the steps of:
- providing an airtight, thermally-insulated enclosure for the sensor, wherein the enclosure includes an optically transparent window through which the pattern emitter projects and the one or more cameras or detectors receive visible and near-visible radiation;
- receiving an electrical signal indicative of a temperature of an interior of the enclosure;
- determining whether the temperature of the interior is within an operational temperature range of the sensor;
- activating at least one thermoelectric device disposed outside the enclosure to either cool or heat the interior of the enclosure based on whether the determined temperature is above or below the range, respectively;
- and
- pumping heat either into or out of the enclosure between the sensor rail and the at least one thermoelectric device to either heat or cool the interior of the enclosure, respectively, based on whether the determined temperature is below or above the range, respectively, to regulate the internal temperature of the sensor.