Hi,
You need to mount a capacitor directly over the supply terminal of the sensor.
The average LED current is 30mA (typ), but it's drawn as pulses of 200mA or more, so use from 47µF to 470µF (depending on what voltage loss your app. can tolerate), to buffer those high current pulses and don't skimp on the gauge of the ground wire.