Equipment suggestions to build device that

Additional info

I can also use a 0-5v input signal, still needs Opto isolation