I’m sorry for jumping in to other’s thread, but my problem is the same except I don’t have idea how to write template script to calculate volume within my cylindrical tank, as we’ll already know the formula for cylindrical in liter is (pi * r^2 * h) / 1000, where r is radius of tank in cm, and h is height of waterlevel in cm. I measure height via sc04 ultrasonic sensor.
Can anyone help me?