Second counter are not logged in the SD card

sorry i have little knowledge on programming From what i see im pretty close to what i wanted to attain. That thing is actually happening on the sensor B, it log every count with its specific time but not in sensor A. But i can see also that same code was used in both sensor. thank you!