Light installation strobe interval advice with HC-S04 sensors: pics&code incl.

Adding the timeout to pulseIn() does most what newPing does. It's that long blocking that appears to be the real problem OP has (lights not flashing fast enough).