A method of expanding the range of working environments in which a 3-D or depth sensor can operate without damaging or degrading the measurement performance of the sensor, the sensor having a rigid support structure and a plurality of optoelectronic components fixedly supported on the support structure, the method comprising the steps of:
- providing an enclosure for the sensor;
- 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;
- and
- activating at least one thermoelectric device to either cool or heat the interior of the enclosure based on whether the determined temperature is above or below the range, respectively.