Zhejiang Xinsenzheng Automation Co., Ltd.

Industrial Sensor Manufacturer OEM & Application Support Factory-direct Supply
Plastic bottles moving through an automated factory production line

Industrial plastic detection guide

What Sensor Detects Plastic? Choose by the Detection Task

A capacitive proximity sensor is often the first option for nearby plastic parts, pellets, or level detection. A photoelectric sensor is usually better for conveyor presence and longer gaps. Clear bottles and film may need a dedicated transparent-object photoelectric sensor or an ultrasonic sensor, while identifying PET, HDPE, or PP is a spectroscopy task.

Short answer: there is no single "plastic sensor." Choose the principle according to whether you need presence, distance, level, transparency handling, color or mark detection, or polymer identification.
Opaque, dark, and transparent plastic Part presence and material level Sample-based validation
01 / CLOSE RANGE Solid plastic or pellets

Start with capacitive sensing and teach it using the weakest real target.

02 / CONVEYOR Opaque plastic presence

Start with photoelectric sensing and match the mode to the surface and background.

03 / CLEAR OBJECT PET bottle or film

Use a transparent-object optical model or ultrasonic sensing after a sample test.

04 / RESIN TYPE PET versus HDPE or PP

Use NIR or another validated spectroscopy system, not a simple proximity switch.

The direct answer

Use capacitive, photoelectric, or ultrasonic sensing according to what the machine must learn.

A capacitive proximity sensor detects a change in capacitance when a plastic target enters its electric field. It is useful at close range and can also detect material through some non-metal container walls. A photoelectric sensor detects a change in received light and is practical for parts moving on conveyors. An ultrasonic sensor uses reflected sound and can help when color or transparency makes optical detection difficult.

These sensors answer "is something present?" or "how far away is it?" They do not automatically identify the polymer. If the control decision is PET versus HDPE versus PP, the system needs spectral information and a validated classification method.

Define the output before choosing the hardware: presence, count, edge, level, distance, color mark, transparency, thickness, or polymer type. Several of these words describe completely different measurements.
XSZ industrial proximity sensors used for plastic and non-metal detection applications
The housing is only one part of selection. The sensing principle, adjustment method, target sample, bracket, output, and environment determine whether the installed sensor is stable.

Start with the required decision

Four plastic-detection jobs that require different evidence

The first question is not "which sensor is cheapest?" It is "what fact must the machine prove, under which worst-case plastic and operating condition?"

Presence or position

Is a plastic part at this point?

Use capacitive proximity at close range or photoelectric sensing when a beam arrangement suits the machine.

Level or fill state

Are pellets or liquid behind this wall?

Use capacitive level detection where the vessel, wall, material, buildup, and grounding can be validated.

Transparent target

Did a clear bottle or film pass?

Use a transparent-object photoelectric model or ultrasonic sensing according to access and target geometry.

Material classification

Is this PET, HDPE, PP, or another resin?

Use NIR spectroscopy or another material-analysis method with a representative reference library.

Capacitive detection principle

How does a capacitive proximity sensor detect plastic?

The sensor evaluates how the electric field at its active face changes. The result depends on the complete target and installation, not on a universal dielectric-constant range or a fixed percentage of a steel rating.

1

An electric field is created

The sensing electrode and surrounding environment form part of an electric-field system.

2

Plastic enters the field

The target's dielectric behavior, size, distance, density, and geometry change the effective capacitance.

3

The signal crosses a threshold

Adjustment or teach logic separates the desired target from the empty-state background.

4

The control output changes

The selected NPN, PNP, relay, analog, or communication output reports the measured state.

Why fixed percentages are risky: published range, target reference, electrode design, target thickness, density, wall thickness, moisture, mounting metal, grounding, and sensitivity method vary by model. Test the exact plastic and use the manufacturer's specified setting procedure.
Colored plastic pellets used as raw material for injection molding
Plastic pellets vary in resin, color, bulk density, moisture, temperature, particle size, and how tightly they pack. Photo: Teemeah, Wikimedia Commons, CC BY-SA 3.0.

Characterize the real target

Why do some plastics detect easily while others need a shorter gap or another principle?

"Plastic" covers a large family of polymers, additives, pigments, fillers, shapes, and densities. A thick PVC component, a thin PE film, loose PP pellets, black glass-filled nylon, and soft foam do not present the same capacitive, optical, acoustic, or spectral target.

For capacitive sensing, a stronger change can come from a larger target, higher effective dielectric response, shorter gap, denser material, or more favorable grounding and mounting. Water, humidity, residue, and dust can also change the field, which is useful in some level applications and disruptive in others.

Solid molded part Define resin, fillers, minimum wall or section thickness, orientation, gap, and part-to-part tolerance.
Pellets or flakes Check bulk density, voids, moisture, temperature, dust, material changeover, and buildup on the vessel.
Thin film Low mass and flutter can make capacitive and ultrasonic signals small or variable; web geometry becomes central.
Foam or porous plastic Low density can weaken capacitive response, while soft or angled surfaces may reduce ultrasonic return.
Do not set sensitivity using the easiest sample. Teach or validate with the thinnest, smallest, darkest, clearest, driest, lowest-density, or most distant acceptable part, whichever creates the weakest valid signal.

Interactive selection helper

Which sensor should detect your plastic?

Select the task that best matches the machine. The result gives the first technology to evaluate and the application evidence needed before ordering.

Choose the task

Start with

Capacitive proximity sensor

Useful for close-range confirmation of many solid plastic parts where the target creates a repeatable capacitance change.

Verify resin and fillers, smallest target, minimum thickness, real gap, bracket material, sensitivity method, humidity, buildup, and controller input.
Dark plastic injection molded parts with surfaces that affect optical sensor response
Dark, glossy, curved, textured, and angled plastic surfaces can return very different amounts of light. Photo: cottonbro studio on Pexels.

Photoelectric detection

Choose the optical mode according to the surface, access, and background.

Photoelectric sensors use an emitter and receiver to detect interrupted or reflected light. Their range can be much greater than close-range capacitive sensing, but the plastic's color, gloss, transparency, shape, angle, and background can change the signal.

A laser spot is useful when the target or feature is small, but a laser is not automatically the cure for every black or glossy plastic. Through-beam geometry removes dependence on target reflectivity more directly because the decision is based on blocking the beam.

Use the real worst-case surface Test every allowed color, mold texture, gloss level, curvature, orientation, and production height.
Control the background Conveyor belts, machine panels, fixtures, gaps, and reflective guards can become competing optical targets.
Protect the optical path Dust, oil mist, condensation, scratches, misalignment, and lens cleaning intervals affect operating margin.
Optical mode How it detects Good starting use What can destabilize it
Through-beam A separate receiver detects when the target interrupts the emitter beam. Dark, glossy, irregular, or low-reflectivity plastic where two-sided mounting is available. Alignment, mechanical movement, small target versus beam size, lens contamination, and access to both sides.
Retro-reflective The sensor receives light returned by a reflector and detects target interruption or attenuation. One-sided sensor wiring with a reflector across the conveyor; dedicated variants can detect transparent objects. Reflector alignment, shiny target reflections, close dead zones, contamination, and using a standard model for clear material.
Diffuse-reflective The sensor detects light reflected from the plastic target itself. Opaque parts with consistent color, surface, angle, and distance. Black color, gloss, curvature, surface texture, target angle, distance variation, and background return.
Background suppression Distance-based optical evaluation helps separate the target from a farther background. Plastic parts in front of a conveyor or machine panel when target distance is controlled. Minimum object size, glossy or irregular reflections, detection window, and mechanical height variation.
Color or contrast mark The sensor compares returned light at selected wavelengths or detects a printed contrast change. Registration marks, label marks, print control, or color-based process checks. Print variation, gloss, target distance, web flutter, contamination, and illumination geometry.

Transparent objects

Clear PET bottles and film need a sensor designed around a small optical or acoustic change.

A standard photoelectric setup may transmit most of its light through a clear target, or receive confusing reflections and refraction from curved walls. A dedicated transparent-object sensor is designed to detect a smaller change in received light than an ordinary opaque-object setup.

Ultrasonic sensing avoids color and optical transparency, but it still needs an adequate acoustic reflection. Very thin, soft, fluttering, narrow, angled, or irregular film can be challenging. Choose by geometry and sample test, not by the word "transparent" alone.

Dedicated transparent-object photoelectric sensor Good for bottles, trays, film, and glass when a suitable reflector or optical geometry can be maintained.
Ultrasonic sensor Useful for clear web loop or distance measurement when the target returns a stable acoustic echo.
Through-beam or fork arrangement Useful for an edge or web-break task when the material causes enough beam attenuation and the beam can be constrained.
Ask before buying: Is the target empty or filled? Is it single-layer or multilayer film? Does it flutter? Is there condensation? Can a reflector be mounted? What is the smallest optical attenuation or acoustic return across all acceptable samples?
Clear plastic bottle on an industrial production line
Clear bottle shape, wall thickness, position, contents, cap, label, and condensation can all change the detection signal. Photo: Vladimir Srajber on Pexels.

Presence versus polymer identity

Use spectroscopy when the machine must distinguish PET, HDPE, PP, or another resin.

A capacitive, photoelectric, or ultrasonic sensor can report presence, distance, level, or a surface-related difference. It does not prove polymer chemistry. NIR spectroscopy illuminates the material and analyzes wavelength-dependent response to build a spectral fingerprint for classification.

Commercial recycling systems use spectral measurements to separate plastic types, but classification is not perfect. NIST notes that commercially available methods can distinguish some categories, such as PET from HDPE, while closely related polyolefin subclasses can be harder to separate. Pigments, additives, contamination, multilayer construction, and black materials can reduce or alter the useful signal.

Treat the reference library, calibration set, sample presentation, surface condition, belt background, algorithm, reject decision, and validation samples as part of the sensor system.
Shorter wavelength Longer wavelength

Concept only: a classifier compares measured spectral features with validated reference data. This is not a universal PET, HDPE, or PP spectrum.

Environment and machine integration

Six conditions can overturn the first sensor choice.

Technology selection is complete only when the sensor can hold margin through the production environment, mechanical tolerance, cleaning cycle, line speed, and controller interface.

01 / WATER

Humidity, condensation, and residue

They can change capacitive thresholds, obscure optical paths, and alter acoustic conditions. Test clean, wet, and built-up states.

02 / BACKGROUND

Metal frames and nearby material

Capacitive fields include their surroundings. Follow the exact mounting and grounding instructions instead of a universal clearance rule.

03 / LIGHT

Sunlight and competing emitters

Choose modulated, interference-resistant optical models and verify the actual line lighting, reflections, and adjacent sensors.

04 / SPEED

Pulse width and controller timing

Calculate how long the target occupies the sensing zone, then check sensor response, PLC input filter, scan time, and software debounce.

05 / MOTION

Flutter, tilt, runout, and vibration

Test the real path. Thin film and curved bottles can present changing optical and acoustic angles even when nominal position is correct.

06 / HOUSING

Temperature, chemicals, and cleaning

Match enclosure protection, lens or face material, cable, connector, chemical compatibility, temperature, pressure, and cleaning method.

Before requesting a model

Send these six facts for a useful plastic-sensor recommendation.

The supplier should be selecting against your weakest acceptable sample and hardest normal operating condition, not against a generic word such as "plastic."

1

Plastic samples and variation

Provide resin if known, fillers, color range, transparency, gloss, thickness, dimensions, density, labels, contents, and worst-case samples.

2

Required control decision

State whether the output must prove presence, count, edge, web break, level, distance, color mark, or polymer identity.

3

Mechanical geometry

Share minimum and maximum gap, approach direction, target speed, line height, flutter, available sides, reflector location, and bracket drawing.

4

Background and environment

List conveyor and frame materials, nearby sensors, lighting, dust, humidity, condensation, oil, chemicals, washdown, heat, and vibration.

5

Electrical interface

Confirm supply voltage, NPN or PNP, NO or NC, analog or switching output, connector, cable, load, PLC input, and response requirement.

6

Acceptance test

Define allowed misses and false trips, sample set, test repetitions, line speed, clean and dirty states, temperature limits, and maintenance interval.

Commissioning and troubleshooting

Use the failure pattern to decide whether to retune, remount, or change principle.

A sensor that detects one sample on a bench has not yet proved production capability. Test the entire application window.

Problem
Likely cause
What to check
One resin works; another misses
The material, filler, density, thickness, color, or surface creates a weaker signal.
Retest the weakest sample at the maximum gap or choose a principle less dependent on that changing property.
Capacitive output drifts
Humidity, residue, wall movement, grounding, nearby metal, or sensitivity is changing the field.
Compare clean and dirty baselines, follow mounting instructions, stabilize the vessel, and teach with production conditions.
Black part disappears optically
Diffuse return is too weak or varies with angle and surface finish.
Evaluate through-beam, background suppression, another wavelength or geometry, capacitive sensing, or ultrasonic sensing.
Clear bottle counts twice or misses
Curved walls, refraction, labels, contents, seams, or multiple edges create a varying signal.
Use a dedicated clear-object model, reposition the beam, adjust filtering, and test empty, filled, labeled, and wet bottles.
Fast parts are skipped
The target produces a pulse shorter than the sensor-to-software timing chain can capture.
Calculate pulse time from target length and speed; check response, input filter, scan, debounce, and one-shot logic.

Application review

Send the real plastic samples before you lock the sensor into the machine drawing.

XSZ can help compare capacitive and photoelectric options against the target, bracket, sensing gap, environment, output, and production speed. A sample-based test is the fastest way to expose clear, dark, thin, low-density, or contaminated worst cases.

  1. Worst-case plastic samples
  2. Presence, level, edge, distance, or identity goal
  3. Minimum and maximum installed gap
  4. Bracket, background, and available mounting sides
  5. Humidity, dust, condensation, chemicals, and heat
  6. Supply voltage, PLC input, and response requirement

Frequently asked questions

Questions about sensors that detect plastic

What is the best sensor for detecting plastic?

For a nearby solid plastic part or pellets, start with a capacitive proximity sensor. For conveyor presence at a longer gap, start with a photoelectric sensor. For transparent film or bottles, compare a dedicated transparent-object photoelectric sensor with ultrasonic sensing. The final choice depends on the real sample and geometry.

Can an inductive proximity sensor detect plastic?

A standard inductive proximity sensor responds to conductive metal through eddy-current effects, so ordinary plastic is not its target. Conductive or metal-filled composite plastics are special cases and must be tested rather than treated as ordinary plastic.

Can a capacitive sensor detect plastic through a container wall?

It can often detect liquid, pellets, powder, or another material through a non-metal wall. Success depends on wall material and thickness, contents, density, moisture, buildup, mounting, grounding, and sensor adjustment. Test empty and full conditions with the actual vessel.

Which sensor detects black plastic?

Capacitive sensing can work at close range because it does not rely on surface color. Through-beam photoelectric sensing is also a strong option when two-sided access exists. Diffuse optical sensing may need a model and geometry designed for low-reflectivity targets. Ultrasonic sensing is another option when target shape and acoustic return are suitable.

What sensor detects clear PET bottles?

Use a photoelectric sensor specifically designed for transparent objects or evaluate ultrasonic sensing. Test empty, filled, labeled, unlabeled, wet, dry, clear, tinted, and deformed bottles because these states can change optical or acoustic response.

Can one sensor identify PET, HDPE, and PP?

A simple proximity, photoelectric, or ultrasonic sensor cannot prove polymer type. NIR spectroscopy and other material-analysis methods can classify plastics using spectral information, but they require representative reference data and validation for pigments, additives, contamination, multilayer materials, and related polymer subclasses.

Why does a capacitive sensor false-trigger near plastic pellets?

Humidity, dust, pellet moisture, temperature, residue, wall movement, a changing bulk density, nearby metal, grounding, or excessive sensitivity can shift the baseline. Compare empty, normal, and worst-case process states and follow the exact mounting and teach instructions.

How should a plastic sensor be tested before production?

Use several real worst-case samples at minimum and maximum gap, every allowed orientation and color, production speed, temperature limits, and realistic clean, wet, dusty, or built-up states. Record misses, false trips, switching position, and signal margin before approving the model.

Technical basis and media

References and image credits

Technical references

Image credits

Engineering note: this guide explains selection logic, not a substitute for the exact model data sheet, mounting instructions, application risk assessment, sample test, or production validation. Confirm specifications with the selected part number.

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare