https://www.youtube.com/watch?v=w_ZFRV6AT6E
No, it's not a Rick Roll, I promise it's a tutorial of using a comparator.
[deleted]
1 up, 4y
basically, it measures how full a container is (No ender chests), and the fuller the container, the stronger the redstone signal. It also works for cakes, sooooo