I am creating code and hardware for a college product, which displays a waiting time in a queuing system. It counts the amount of people going through a gate. Once six people have passed through the gate, the waiting time goes up by one minute.
To the issue; I understand why it is happening, I just don't know how to resolve the problem. Once the "reedCounter" gets to 6, the "minuteCounter" does go up, but it doesn't stop going up until the "reedCounter" is incremented again.
It would appear that you want to increment counter once, when the value in reedCounter becomes a multiple of 6, not every time through loop(), when the value of reedCounter is a multiple of 6. Of course, fixing the code is up to you, since we can't see the rest of it.
Just make sure that your if is executed only when reedCounter actually changes.
You are apparently executing it in a busy-loop without checking whether reedCounter changed. This is why your minutes are rapidly incremented on every iteration of that busy-loop.