Was thinking about some project that revolves around mugs and would use the volume of whatever mug was placed within it to activate a separate component. The part that stumps me is I'm not entirely sure of the best approach. I was considering something like lidar or lidar adjacent but I was wondering if there was a simpler method I had missed. The idea would be to automatically calculate the volume of the empty mug to be used elsewhere, so as long as it can output volume it's good.
Any advice would be appreciated and as always if this is the wrong section to post this in just point me in the right direction and I'll be on my way.