is there a way to detect redstone signals?

is there any way i can detect the level of powering of a specific block without having to run a billion checks? i'm in minecraft 1.21.4. I don't care if it's another datapack or a library mod, but seeing as it's something a couple mods (specifically related to redstone signal detection, like Redstone Signal Visualizer or Redstone Multimeter) are able to access, i'm assuming there is a way to do this without excessive checks.

Continue to help post