i want to measure the fuel in a fuel tank and i am using a capacitive sensor through arduino.
So , i have 2 steel plates and have connected 1 to the ground and the other to 4th pin.and a net resistance of 560K,from pin 4 to pin 2.
here is the code
CapacitiveSensor cs_4_2 = CapacitiveSensor(4,2);
long start = millis();
long total = cs_4_2.capacitiveSensorRaw(500);
Serial.print(millis() - start);
the serial monitor is printing the same data when the plates are placed anywhere,in air,in a container,full or empty.