I want to make a PCB that has ESP32 on it, and ESP sends a PWM signal to the motor driver. I want to indicate if pwm signal is being sent or not by led, without interfering with the PWM signal.

Is there any particular sensor or way in which I can do this? Prior to this, I tried putting smd led parallel to the PWM signal, but there was some problem the frequency of the PWM that doesn't work with led.