It has come to my attention that my first description of my problem was very cryptic, so I have tried to rewrite it for better understanding.
I have an actuator that measures 8 pulses/rpm and there is 440 pulses in a stroke, the stroke length is 250mm and the speed of the actuator is 20mm/s which equals to 28,4 ms/pulse while running.
The actuator can accidentally stop with the reed switch activated and so there is 22.1V and 2,55mA running through it. (if not the signal is ofc. 0v).
When the actuator is running the signal drops to 11.5V and 1,35mA I need to get both these values down to a level that the Arduino can handle, which means that for the Arduino to see both signals as high they should be above 3v and under 5v.
How do I do that?