General best practices for maintainable rule and item arrangements

MQTT might be worth a look Nishit. There’s an arduino library for it and openhab support too.

No need for rules, you can setup mqtt to control items via the bindings, this might not be 100% but somthing like:

Switch myLight “Light” {mqtt=“<[mybroker:myHome/myLight:command:default]”}

For a dimmer you’ll need to publish a number (percent power) rather than an ON/OFF command and change your item to a Dimmer.

Google around and you can find similar examples e.g.