I have a Capacitive Proximity Sensor LJC18A3-B-Z/BY, which I believe can detect many materials and send different values for each. I use 'analogRead()' to observe various values for each material, but I only receive 0 and 1023.
Either low or high? I have a friend who has the same sensor as mine, but his sensor reads different values for different materials, such as plastic for 400-500. Is it possible to accomplish the same thing?
Your friend may have connected it incorrectly (did not connect the ground, causing other electric fields to imitate readings) or fabricated the readings because they have yet to do their work. You have the correct information now, and the understanding why. Proceed with your work.
Basically, I'm making a reverse vending machine or a recyclable bottle that is put as payment and fills a user-provided bottle with selectable water amount.
I think I'm good, i just spent ₱350 ($6.32) on that sensor (in my country ₱350 is expensive to us)