If I were to do this I'd probably start with a system from Unipi [0], either their Raspberry Pi add-on board or one of their PLCs. They're pretty handy and more versatile than standard PLC systems.
I was going to use a Unipi for a boat project awhile ago, but I felt silly spending 350+ on an RPi.. now that it's been a bit longer the price is a lot more attractive, given the inflated RPi costs.
[0] https://www.unipi.technology/