

If you can do python and you can wire one part to one part, one part at a time, it’s not hard, at least to me. Get the analog sensor, connect it to the analog to digital converter, connect all of their power to a relay, connect the relay and the converter to the pi, connect that to power. Then use Python to check the value in a loop, forever.
My larger system is entirely 12V power and is connected directly into a 2-panel 24V solar system with battery.
But entirely mechanical without external input like power is a really good idea.