How to get more than the 16 Analog INs on a Arduino Mega for using like 24 piezo sensors
You can customize a controllino on their page
https://www.controllino.biz/controllino-myplc/
I just looked at it and it seems you can get 24 analog outputs.

Don't know what the cost is though.