NEJE 30 with SKR 1.4T

Another type of solution could be to use photocoupler.
But i suggest to use faster type the PC817.