>>2935130
>I have an old hp tower and a raspberry pi 5 with 8gb but I think both of those are overkill and maybe an Arduino would be more appropriate.
https://autonomylogic.com/
Runs on all three things you mentioned. Looks like a PLC and uses modbus. Even modbus over tcp (Ethernet).
You'll run into problems with the sensors. Most of your sensors will either use voltages that will fry your pi or use I2C bus which is difficult to connect to openplc. There are work arounds, like buying 5v sensors from Arduino stores that specifically don't use I2C bus. Or learn c++ and write some code to connect the two. Personally, I don't have time for the second choice.
also:
https://www.home-assistant.io/
Runs on the tower or the pi. Easily connects to wireless stuff that connects to a hub (like amazon alexa or google assistant). If you want to teach yourself a little bit of YAML, you can connect to a PLC using modbus over tcp. It is already used for turning lights on and off, connecting to certain sensors, and oddly relevant things like raising or lowering blinds. It can generate graphs and you can make buttons you can push on your phone or tablet.
Both have a learning curve. Both start off as frustrating. Both are free.
I would run openplc on the pi and program the arduino to be a PLC slave (through the pi). I'd hook up 5v relays and stop switches to the arduino. I'd put HA on the tower and connect to wireless sensors for temp and humidity. The HA can be also used for data acquisition, graph generation, and remote control.