![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://lemmy.world/pictrs/image/8286e071-7449-4413-a084-1eb5242e2cf4.png)
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.