Email us

Infrared sensor mounting behind an enclosure window

Mount the sensor socket on a removable internal carrier with adjustable standoffs, independent cable restraint and positive clearance from the window. Verify LWIR transmission and the full optical clearance envelope before fixing the carrier position; the window must not support the sensor.

NEMA4 Enclosure engineering team · Published October 30, 2026 · 6 min read

Mount the sensor socket on a removable internal carrier, then position that carrier behind the window with adjustable standoffs. Keep a positive clearance between the sensor and window. The window should seal the enclosure, not locate or support the sensor.

For long-wave infrared sensing, confirm window transmission before designing the bracket. A window that looks transparent may block the sensor’s operating wavelengths. Build the optical path, mechanical support and cable restraint as separate functions so servicing one does not disturb the others.

What you need

Start with the sensor’s mechanical drawing, spectral response and field-of-view information. A package designation alone does not establish socket compatibility, optical position or permitted clamping surfaces.

Gather these parts and dimensions before laying out the carrier:

  • A socket matching the actual lead diameter, pin pattern, insertion depth and electrical requirements.
  • A small carrier PCB or machined support that secures the socket independently of its wires.
  • A removable bracket supported by existing internal bosses, a backplate or suitable bonded mounting pads.
  • Adjustable standoffs, shims or threaded supports with a way to lock the final position.
  • A sensor retainer that contacts only surfaces permitted by the sensor documentation.
  • A window assembly with documented transmission across the sensor’s operating band.
  • A cable clamp and service loop that remain clear of the optical path.

Ordinary visible-light glass and clear acrylic are generally unsuitable for typical 8–14 µm LWIR sensing. Select the window using spectral transmission data, including its actual thickness and coating.

If the enclosure has no internal mounting features, review the support options in mounting a PCB in a watertight enclosure with no posts. Here, those supports must also maintain optical alignment.

Build and align the removable carrier

  1. Establish the optical reference. Identify the sensor’s optical axis and the reference used for its specified field of view. Do not assume the metal can’s front face is the entrance pupil. Mark the window center and carrier location from repeatable enclosure features, rather than estimating their positions by eye.

  2. Check the clear aperture. Include the window opening, retaining ring, gasket edge and any internal baffle in the optical envelope. For a simple circular cone, the required diameter is approximately the entrance-pupil diameter plus twice the pupil-to-aperture distance multiplied by the tangent of the half-angle. With a 60-degree full field, a 0.16 in [4.1 mm] pupil and a 0.20 in [5.1 mm] distance, the geometrical diameter is about 0.39 in [9.9 mm], before tolerances. Use this only when the sensor’s optical model supports that construction; otherwise obtain its clearance envelope from the manufacturer.

  3. Attach the stationary supports. Use existing internal bosses or a backplate where possible. Do not drill through the enclosure merely to secure this small carrier. If bonded pads are necessary, select an adhesive documented for the actual substrate, temperature range and sustained load. Follow its surface preparation and full-cure requirements. Place the pads outside the window seal land, and assess adhesive creep under heat and vibration.

  4. Build a serviceable sensor module. Secure the socket to its carrier before inserting the sensor. A socket designed for PCB mounting should be soldered and mechanically supported as its documentation requires. Make solder joints and clean residues before installing the sensor. Use a removable clip or retaining ring only where the sensor permits contact. Do not grip the optical cap, load the leads sideways or substitute an elastic band for engineered retention.

  5. Set the carrier position. Support the carrier on three defined points where practical, using shims or adjustable standoffs to set depth and tilt. Establish one lateral locating reference, then provide controlled adjustment at the remaining supports. Tighten fasteners while checking alignment. Lock the adjustment without pulling the carrier toward the window or bowing its PCB.

  6. Set a positive window gap. Work from the worst-case stack, not the nominal drawing alone. Include window seating, socket height, sensor seating, bracket position and expected movement. For example, a nominal 0.040 in [1.02 mm] gap leaves only 0.012 in [0.30 mm] if combined worst-case movement toward the window is 0.028 in [0.71 mm]. That arithmetic illustrates the method, not a universal clearance recommendation. Increase the gap or reduce tolerances if the remaining clearance is inadequate.

  7. Restrain the cable at the fixed structure. Add a service loop between the stationary clamp and removable carrier. The loop must permit removal without pulling the socket, rubbing the window or entering the field of view. Follow the principles in cable strain relief for sealed enclosure entries: cable tension belongs at a deliberate restraint, not at electrical terminations.

After adjustment, record the standoff positions or shim stack. Add locating features if replacement must restore alignment without a complete optical setup.

Leave room for thermal movement

The carrier, enclosure and window may expand at different rates. Rigidly fastening every point can turn that movement into bracket distortion or window loading.

As an illustrative calculation, assume a differential expansion coefficient of 50 µm/(m·K). Across 2 in [50.8 mm] and a 60 °C temperature change, relative movement is about 0.006 in [0.15 mm]. Use the actual material data and installation temperatures for your design.

A fixed datum with a guided sliding support can accommodate expansion while controlling lateral alignment. Size the travel deliberately; a loose oversized hole is not a controlled guide. Check axial movement separately because lateral slots do not protect the sensor-to-window gap.

Keep the window’s sealing and retention arrangement independent. Do not bond the sensor carrier to the window or compress the window with the sensor body.

Check the completed assembly

Check the assembly at room temperature before environmental testing. Then repeat the relevant measurements over the intended temperature range and after representative vibration or handling.

  • Verify that the sensor is fully seated without exceeding its permitted insertion force.
  • Measure the minimum window gap and confirm nothing contacts the window during carrier removal.
  • Check the complete field of view for clipping by brackets, retainers, gaskets and the enclosure wall.
  • Confirm that the cable loop cannot move into the optical path.
  • Remove and reinstall the carrier, then check alignment and signal repeatability.
  • Inspect the window seal and attachment without disturbing their compression or fasteners.

Check the sensor through the installed window, not only with the window removed. Transmission losses, reflections and window emission can change the measurement. Temperature-measuring sensors may require window compensation or calibration across expected window temperatures. Presence or motion sensors still need functional checks across their intended detection area.

Also assess condensation and contamination on both window faces. An internal fan may redistribute air, but it does not remove moisture from a sealed enclosure.

Mistakes that cost the seal or measurement

The most damaging mistake is treating the window as a mechanical stop. Contact can scratch optical surfaces, stress a brittle window and transfer vibration directly into the sensor.

Other avoidable failures include:

  • Selecting a window by visible transparency instead of measured infrared transmission.
  • Matching a socket by outside diameter while ignoring its electrical pin pattern.
  • Using adhesive as the only precise alignment feature without checking creep and thermal movement.
  • Allowing a carrier fastener to intersect the window gasket or sealing surface.
  • Leaving solder joints, sensor leads or the window frame to carry cable tension.
  • Assuming a small clear aperture cannot clip a wide-angle sensor.

A new window opening also changes the enclosure assembly. Our enclosure ratings are manufacturer ratings; the enclosures are not UL listed. A window, its mounting arrangement and all other penetrations require review against the intended protection requirements. The article on enclosure rating after mounting devices explains why a rated component alone does not establish the completed assembly’s rating.

Specify the internal mounting and window together

For a new enclosure, define the optical and mounting interfaces on the same approval drawing. We build custom enclosures with customer-defined material, width, height, depth and cutouts, from one piece.

Specify the sensor’s optical axis, clear aperture, window thickness and installed window position. Include the carrier envelope, support locations, adjustment travel, minimum clearance and removal direction. State whether the window and sensor module are supplied separately or included in the requested assembly scope.

Identify keep-out zones around the window seal, door hardware and cable route. Include the temperature range and any washdown, outdoor or chemical exposure affecting the window assembly.

Use the drawing review process for custom stainless enclosures and factory cutouts to resolve those interfaces before cutting. Custom work is delivered in 10 business days, counted from your approval of the drawing.

Enclosures for this job

Catalog sizes that suit the job this article answers, picked from its subject; open one for its full specifications.

EnclosureMaterialOutside H x W x D / displayRating
12 × 10 × 6 in304 stainless12 x 10 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
20 × 16 × 8 in304 stainless20 x 16 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
24 × 20 × 8 in304 stainless24 x 20 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Should the infrared sensor touch the enclosure window?

Do not use the window as a stop or support unless the complete sensor and window assembly was specifically designed for contact. Maintain a positive clearance based on manufacturing tolerances, vibration and thermal movement. Support the sensor from an independent internal carrier.

Can an LWIR sensor look through an ordinary glass window?

Ordinary visible-light glass generally blocks typical 8–14 µm LWIR sensing wavelengths. Choose a window with documented spectral transmission across the sensor’s operating band. Evaluate its actual thickness, coating, viewing angle and temperature, rather than relying on visible transparency.

How can the sensor carrier be mounted without drilling the enclosure?

Use existing internal bosses or a backplate first. Suitable bonded mounting pads are another option when their substrate compatibility, sustained load, temperature resistance and creep are verified. Attach a removable carrier to those supports so servicing does not disturb the adhesive joint or window seal.

Is a socket enough to retain a TO-39 infrared sensor?

A socket enables removal, but does not automatically provide adequate retention against vibration or cable loading. Follow the socket and sensor documentation. Support the socket on a carrier, restrain its wiring separately, and add a removable retainer only on permitted sensor surfaces.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Build it from 12 × 10 × 6 inRequest a custom quote

NEMA 4X enclosures: sizes for this job

Keep reading

More on layout and installation

All articles

Buying guides

The guides behind this answer

All guides