Liquid Level measurement using copper foils sticked to the steel cylinder with arduino

an alternative could be TOF-distance-sensors
I have used them in water tanks

good. i even used vl53lix from m5stack website. its not giving less than 1mm accuracy..or sometimes not even 1 mm. I think it is because of my cylinder, it is 50mm diameter and 20cm in height, and the fov degree may not reach all the way down? if u know more...can u just share info

A capacitance measurement is not going to give you anything close to that sort of accuracy. Not even under the best of conditions. It will be subject to all the various environmental factors like temperature and in the case of water even barometric pressure.

I am not sure if anyone got this idea but I used the touchread function of arduino to get some readings. Lemme explain my project. I wanted to measure the height of a liquid level in a steel cylinder. So seeing the touchread function giving some values..i thought i can stick an insulated copper foil to wall of my steel cylinder and add water and as water rises it might give some value. And I was right...it gave me increase in values...but the problem is that the values does not get stablized even if i stop adding water. They keep on increasing slowly. So my idea is that if i get a certain value at certain height...i can match it and tell the exact height..any thoughts on how to get stable readings? MC: ESP32S3 M5Stamp. Code i used is the touchread example from arduino

First you have to figure out the physics of what is affecting the capacitance. It is unclear from the description what the circuit, setup, procedure, and results are.

I have merged your cross-posts @rkhpr_44.

Cross-posting is against the Arduino forum rules. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend a lot of time investigating and writing a detailed answer on one topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting can result in a suspension from the forum.

In the future, please only create one topic for each distinct subject matter. This is basic forum etiquette, as explained in the "How to get the best out of this forum" guide. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

We all got the idea. And we've tried many different ways to explain to you that it simply will not work. I don't know what else you want. Nobody here can tell you any magic formula to defy the laws of physics.

I conducted calibration of the sensor inside a steel cylinder and these are the results..after 6 calibrations, they are starting to settle at a fixed number. just wanted to share my findings so that could be useful for others. By the way can anyone just imagine..why they increase and after 6 calibs they settle. I think there are more than one reason. 1 reason cud be the splashing of water on the sensor ( as my cylinder is just 50mm dia).

Maybe the temperature of the cylinder is changing from the water. With so much capacitance between the sensor and the vessel, there will be a lot of things that cause changes to the numbers.