is the actual real world sensor signal the black trace on the diagram in post #1 and you wish to convert this to the violet trace using an arduino?
if so could you use an ADC to
- sense the rising edge and output a high signal on a digital pin
- sense the falling edge and output a low signal on a digital pin
if not could give us more details of the project, e.g. input signals and output required?