If X5-2 is power to your sensor, then maybe try a capacitor there.
But first I would try what aratti said and use bigger caps by the regulator.

Mike -