Capacitive senors react to conductive material strong, non-conductive less strong, but you can't use them to distinguish one material from the other.
Now if you would tell us what you're actually trying to do, we may be able to come up with possible solutions.
we're going to make a reverse vending machine concept thesis wherein only the plastic bottles are accepted and reject other kinds of bottles in exchange of points. now, we bought a capacitive sensor because it sense plastic bottles, our problem now is it also detect other materials like metal, we dont know what are we going to replace to the code above so that it will only detect plastic and reject other materials.
That's a tall order.
I'm thinking of a break beam sensor to detect the presence of a bottle.
I really don't know how commercial machines do this. Probably a combination of sensors.
Shape is another major one: two holes, one that's too small for your bottle (sorts out smaller bottles), one that's just big enough for your bottle (sorts out bigger ones).
Bottles come in limited size and shape, make use of that.
Two or three break beam sensors at strategic heights will tell you whether your bottle is of the correct height as well.
Weight can give you the material - and tell whether the bottle is empty. Plastic bottles should be very light in weight, but do allow for residue and dirt in your weight allowance.
Capacitive sensors principally detect nearby conductors, like metal or fingers. The object being
detected forms a capacitor plate.
To discriminate materials based on their dielectric constant requires accurate geometry in the sense
cell, for instance pieces of a given thickness - this is not practical for your machine.
You could combine a metal detector and a break-beam sensor - if the break beam triggers and the metal
detector doesn't, its something not metal...