They're really simple, they just look at the value of whatever block is next to them and produce a redstone signal with corresponding strength. place a cauldron, and the signal will depend on how much water is in it. place a beehive, it'll depend on how much honey. place a hopper, it'll depend on how many items. usually you can see that value if you press f3 and look at the block